-
Notifications
You must be signed in to change notification settings - Fork 316
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
python 3.10 support #740
Comments
@leifwalsh I tried to run llvmlite in a Python 3.10 (beta?) docker container from here: https://hub.docker.com/_/python?tab=description -- IIRC the only thing that needs to be done right now is to remove the restriction on the Python version in setup.py and it will compile and the test suite will run (or there is a minimal amount of trivial patching, can't quite remember). The guard is here: https://github.com/numba/llvmlite/blob/master/setup.py#L36 If you are inclined, it would be great for you to confirm my statements above independently. If we can be sure, that no changes are needed in llvmlite for Python 3.10 that would be awesome! Let me know if you need any more pointers or if you hit any snags! |
I think we'd also want to modify the CI setup to include 3.10? Would we also drop support for 3.6, given that Numba no longer supports it? |
Yes, but I think we will need to wait until a Python 3.10 becomes available as a conda package because all our CI uses that.
Yes, that was an oversight, it should have been removed for v0.37.0 RC1 -- but was missed. It doesn't hurt to include them for now, but yes, 3.6 has to go. |
I've just tested 4ba6f53 with LLVM 11.1.0 and a freshly built copy of Python 3.10.0b3 (on Arch Linux) and did not have to change anything other than the version guard. I guess the conda support is conda-forge/python-feedstock#463 |
Great, thanks for confirming!
The conda-forge support, yes. |
3.10 final is out so I think this can move forward whenever your CI is ready to run it, and you're ready to cut a fresh release |
@leifwalsh thank you for the ping. We depend on a Python 3.10 conda package for our internal build system, so it will be some more time until we can conclude this. |
One thing to note is that while llvmlite would work with Python 3.10 now, Numba does not yet due to bytecode changes. You'll want to track this PR to know when Numba is ready for Python 3.10 (at which point both Numba and llvmlite can be released together): numba/numba#7381 |
Ooh, thanks, I do want to track that. |
for me, llvmlite does not compile from git with pip. If it is just a version guard that needs updating, could release an intermediate version (0.37.1) that fixes this?
|
Can you try: |
Thanks.
the install works
Thanks for your fast help! Now need to wait for numba port ... |
Just FYI: we included llvmlite in Fedora recently, so you can just use https://src.fedoraproject.org/rpms/python-llvmlite (For python3.10, we only needed to remove the version guard as noted above, and it built fine will all tests passing.) |
Thank you for trying and confirming this. But please, be aware of: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#what-to-be-aware-of-when-using-a-system-provided-llvm-package |
@sanjayankur31 thank you for reporting back about this. You may need an additional patch, there is a PR with all the relevant patches at: #769 |
@esc thanks, I'll pull the patches in when I can find the time |
@esc thanks. Since I use my own Python compiled-from-scratch the dnf version might not work for me. |
Should this be closed now that 0.38 supports Python 3.10? |
Yes, thank you for the ping, 0.38 included support for 3.10 so I will close this now. |
llvmlite currently explicitly doesn't support python 3.10. What needs to be done to lift this restriction?
I'm mostly creating this issue so I have something to watch so I can know when it's ready for 3.10, but if there's something you all need help with I'm happy to try.
The text was updated successfully, but these errors were encountered: