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

PineAPPL Python API for 3.13 #322

Open
scarlehoff opened this issue Jan 10, 2025 · 1 comment
Open

PineAPPL Python API for 3.13 #322

scarlehoff opened this issue Jan 10, 2025 · 1 comment

Comments

@scarlehoff
Copy link
Member

At the moment the version of pyo3 is pinned to 0.21

pyo3 = { features = ["extension-module"], version = "0.21.2" }

support for 3.13 was added only in 0.22 (and for free-threaded 3.13, 0.23; I'd like to play with that if possible but it's not really that important).

@cschwan cschwan changed the title pineappl for python > 3.12 PineAPPL Python API for 3.13 Jan 10, 2025
@cschwan
Copy link
Contributor

cschwan commented Jan 10, 2025

Until recently the problem was the numpy crate, which required PyO3 0.21.x, but it was recently upgraded to support higher version numbers. I believe if you raise both PyO3 and numpy versions you should be able to build for Python 3.13. Have a look at #299, which supports Python 3.13 out-of-the box (but it changes the Python API). You may need to fix a few more things described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants