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

No support for Python 3.12 #2204

Closed
haampie opened this issue May 3, 2024 · 5 comments
Closed

No support for Python 3.12 #2204

haampie opened this issue May 3, 2024 · 5 comments

Comments

@haampie
Copy link

haampie commented May 3, 2024

I see some claims that pythran supports Python 3.12, but it uses distutils so it doesn't:

from distutils.errors import CompileError

causing

ModuleNotFoundError: No module named 'distutils'

when running pythran --version.

This happens for example in scipy during meson configure, resulting in build failure.

Code changes are required to continue to use distutils, you cannot rely on import distutils to work even if you add a dummy dependency on setuptools. See cython/cython#5754 (comment) for why not.

@serge-sans-paille
Copy link
Owner

Thanks for the report. I believe #2205 fixes most of the issues (?)

@haampie
Copy link
Author

haampie commented May 6, 2024

Fixes it 👍

@serge-sans-paille
Copy link
Owner

Fixed by #2205

@haampie
Copy link
Author

haampie commented May 8, 2024

Hi @serge-sans-paille, would it make sense to backport this in a patch release? Does pythran have patch releases?

@serge-sans-paille
Copy link
Owner

no patch release, but I plan a release in the forthcoming weeks, I need to have a look at #2203 first though.

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