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 Python 3.13 #4883

Open
corneliusroemer opened this issue Nov 14, 2024 · 6 comments
Open

Support Python 3.13 #4883

corneliusroemer opened this issue Nov 14, 2024 · 6 comments

Comments

@corneliusroemer
Copy link

Currently it looks like Biopython doesn't yet support Python 3.13 which has been out for ~1 month. Would be great to add it in the next release!

While I couldn't find specific mentions of Biopython being pinned to <3.13, the fact that conda-forge does not have any builds for 3.13 means it's effectively out of bounds for us.

@michaelfm1211
Copy link
Contributor

Based on my experimentation, Biopython works perfectly fine (successfully builds and passes tests) on Python 3.13 if experimental free-threading is turned off. If it is turned on, Biopython successfully builds and passes tests, but modules with C extensions raise a warning about not specifying whether or not they are safe without the GIL. Also, features that require SciPy to be installed are unavailable because SciPy doesn't support free-threading mode (scipy/scipy#21675).

Based on conda-forge/biopython-feedstock#49, it looks like conda-forge is waiting for the 1.85 release of Biopython since the current 1.84 doesn't build on Python 3.13

@peterjc
Copy link
Member

peterjc commented Nov 19, 2024

As discussed on the conda-forge issue, all that blocks Python 3.13 with the current release of Biopython 1.64 is a C compilation issue which is fixed on the master branch - https://patch-diff.githubusercontent.com/raw/biopython/biopython/pull/4706.patch - BioConda using that as a path is looking wise in the very short term.

Or waiting for Biopython 1.65, which I would have liked to have out already. I had time in September https://lists.open-bio.org/pipermail/biopython/2024-September/017067.html but don't in the short term - maybe next week?

@mdehoon
Copy link
Contributor

mdehoon commented Nov 26, 2024

I am seeing a bunch of errors with Python 3.13 with the current master branch. I am not sure if these are bugs in Biopython, or issues with Python 3.13.0.

@peterjc
Copy link
Member

peterjc commented Nov 26, 2024

@mdehoon can you elaborate? Things seemed fine in my testing, and on GitHub Actions - see #4892 for including Python 3.13 in our CI testing.

@foxtran
Copy link
Contributor

foxtran commented Dec 18, 2024

@peterjc, @mdehoon, any progress with Python 3.13 support? Just interesting for upcoming release 1.85 :)

@peterjc
Copy link
Member

peterjc commented Dec 18, 2024

As far as I know, everything is fine with Python 3.13.

There is a new issue with NumPy 2.2 (recently released).

I hope to do the Biopython 1.85 release next week (once work has shut for the Christmas break).

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

5 participants