Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for numpy 2.0 and Python 3.13 #2022

Open
1 of 2 tasks
thebaptiste opened this issue Dec 13, 2024 · 2 comments
Open
1 of 2 tasks

Support for numpy 2.0 and Python 3.13 #2022

thebaptiste opened this issue Dec 13, 2024 · 2 comments
Labels
information For development/intsructional purposes standards / conventions Suggestions on ways forward support Questions and help for users/developers

Comments

@thebaptiste
Copy link

thebaptiste commented Dec 13, 2024

Addressing a Problem?

Hello

Is xclim 0.53.2 supporting :

  • numpy 2.0 ? 2.1 ? 2.2 ?
  • Python 3.13 ?

If not, when do you think xclim will support Python3.13 and at least numpy 2.0 ?
Sorry, maybe I should have opened 2 issues, one for numpy 2 and another for Python 3.13.
Regards

Potential Solution

Support for numpy 2 and Python 3.13 (if not already supported)

Additional context

No response

Contribution

  • I would be willing/able to open a Pull Request to contribute this feature.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@thebaptiste thebaptiste added the enhancement New feature or request label Dec 13, 2024
@Zeitsperre
Copy link
Collaborator

Zeitsperre commented Dec 13, 2024

Hi @thebaptiste, thanks for the question.

xclim has an open pin for numpy (and we have also recently adopted the Scientific Python SPEC-0 calendar), so we're progressively catching up, possibly dropping support for Python3.10 in the next few months (after we can support Python3.13).

We use numba in order to provide some pre-compilations for some complex algorithms, and unfortunately, it does not (yet) support Python3.13 or numpy>=2.1. As far as I can tell, that's the last dependency we need to be able to support those versions. From their next milestone, I get the impression that the next big release should happen soon, though!

@Zeitsperre Zeitsperre added standards / conventions Suggestions on ways forward information For development/intsructional purposes support Questions and help for users/developers and removed enhancement New feature or request labels Dec 13, 2024
@thebaptiste
Copy link
Author

thebaptiste commented Dec 13, 2024

Yes, numba 0.61.0rc1 supports Python 3.13 and numpy 2.1 (see the changelog)
But of course it's better to wait for numba 0.61.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information For development/intsructional purposes standards / conventions Suggestions on ways forward support Questions and help for users/developers
Projects
None yet
Development

No branches or pull requests

2 participants