-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Experimental support for Python 3.10 in Sage 9.5 #30766
Comments
Changed keywords from none to upgrade, python |
This comment has been minimized.
This comment has been minimized.
Dependencies: #30768 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch: u/mkoeppe/support_python_3_10 |
This comment has been minimized.
This comment has been minimized.
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:95
I change the workarounds by an attempt at a "proper" fix. With this all the doctests in I'm still to run the whole testsuite; I am still getting failures in Should #33040 be merged into this ticket as a dependency? Am I the only one having problems caused by old matplotlib? New commits:
|
comment:96
Notes on the implementation: Everything is in the The C implementation for python 3.9 is short and should be equivalent to what was before. The implementation for 3.10 is even shorter since structs are now defined in (internal) python headers. The argument to |
comment:98
Looks good to me but it needs to be tested also on Python < 3.10 |
Changed author from Matthias Koeppe to Matthias Koeppe, Gonzalo Tornaría |
comment:100
Replying to @mkoeppe:
Absolutely! I did one test by passing Although I think the changes should really be nil for python < 3.10; would it be useful for review if I split the patch in two parts where the first part just refactors the existing code and the second part adds the new code for python 3.10? With some luck the first part visibly does nothing, and the second part will only add code conditional to python >= 3.10. |
comment:101
Replying to @tornaria:
No, it's fine as is |
comment:102
My full clean build with python 3.10 finished with the following doctest failure:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:104
This seems to be the root cause:
Now the same thing
|
comment:105
Everything passes now for me using system python 3.10.1 on void linux:
|
Reviewer: ..., Matthias Koeppe |
comment:107
All tests passing here too, thanks! |
Changed reviewer from ..., Matthias Koeppe to Antonio Rojas, Matthias Koeppe |
comment:108
Thanks! |
comment:109
The dependency #33040 needs review so that we can get this ticket merged. |
Changed branch from u/tornaria/support_python_3_10 to |
Changed commit from |
comment:111
Something regressed in 9.5.rc0 which is causing distutils deprecation warnings
These didn't happen with 9.5.beta9 + this branch. |
comment:112
Replying to @antonio-rojas:
This comes from #32938, in particular form the removal of
from |
comment:113
adding |
comment:114
These three seem to fix all the warnings for me (numpy 1.22 from system via #29665)
Edit: fixed paths in the patch. |
comment:115
Please see and review #33135. |
This is to support Python 3.10, which was released on 2021-10-04.
https://docs.python.org/3.10/whatsnew/changelog.html#changelog
Thanks to the following tickets, Sage is mostly ready for
Python 3.10 in addition to 3.9, 3.8, 3.7.
gmpy2
to add python 3.10 supportpyzmq
,babel
- to fixerror: implicit declaration of function 'PyObject_AsWriteBuffer' is invalid in C99
with pyzmq-19.0.2numpy
cffi
: Update to 1.15.0traitlets
to 5.1.1 (for python 3.9.8, 3.10)pip
to 21.3.1,distlib
to 0.3.3distutils
In this ticket, we enable use of system Python 3.10 but issue a warning regarding its experimental status for Sage.
The ticket does not include the upgrade of the
python3
SPKG to Python 3.10. Many systems already ship Python 3.10. To test, thanks to https://wiki.sagemath.org/ReleaseTours/sage-9.5#Separate_virtual_environment_for_Python_packages, a full rebuild of the Sage distribution is not necessary - only the Python packages will be built from scratch in a separate venv.Related:
Depends on #33013
Depends on #32930
Depends on #33040
CC: @mkoeppe @slel @kiwifb @tornaria @antonio-rojas
Component: packages: standard
Keywords: upgrade, python
Author: Matthias Koeppe, Gonzalo Tornaría
Branch:
df9f1d4
Reviewer: Antonio Rojas, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30766
The text was updated successfully, but these errors were encountered: