-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Meta-ticket: Replace imports from deprecated distutils #31295
Comments
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:7
The plan seems to be for removal in python 3.12. Somewhat connected, does sage depend on python packages that are in a somewhat abandoned state and therefore will just stop being buildable? Do we have some kind of audit? |
comment:9
Replying to @mkoeppe:
OK, I could have flagged pari_jupyter earlier, but I am more worried about packages sage_lib depends on. pari_jupyter not working is probably affecting a very small number of users and not an obstacle to sage itself. I guess in the back of my mind I see cysignals going out of maintenance since Jeroen disappeared. cypari has somewhat been rescued but could also be a concern. |
comment:10
|
distutils
is marked deprecated in Python 3.10, 3.11 - see https://www.python.org/dev/peps/pep-0632/ and https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html?, which also lists some replacementsTickets:
setup.py
from distutils to setuptoolssage_setup
: Replace imports from distutils by setuptoolssage.misc.cython
: Replace imports from distutils by setuptoolssetuptools
to use its vendored distutils instead of stdlib distutilssage.features.Executable
: Remove global imports fromdistutils
sage.features
,sage_setup
: Replace use ofdistutils.errors
bysetuptools
distutils.log
Other issues:
python3/spkg-configure.m4
are no longer meaningful. Replaced by setuptools for Python >= 3.12 in Prepare python3spkg-configure.m4
for Python 3.12 (setuptools instead of distutils) #36983CC: @fchapoton @kiwifb @tornaria
Component: python3
Issue created by migration from https://trac.sagemath.org/ticket/31295
The text was updated successfully, but these errors were encountered: