-
-
Notifications
You must be signed in to change notification settings - Fork 663
Open
Description
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 replacements
Tickets:
- sagelib: Update metadata for PyPI deployment as package sagemath-standard #30912 - switches sagelib
setup.py
from distutils to setuptools - sage_setup: Replace imports from distutils by setuptools #30984
sage_setup
: Replace imports from distutils by setuptools - sage.misc.cython: Replace imports from distutils by setuptools #31349
sage.misc.cython
: Replace imports from distutils by setuptools - homebrew: Unused packages (singular, pari, ...) in /usr/local leak into sagelib/cysignals builds via distutils.cfg #31335 homebrew: Unused packages (singular, pari, ...) in /usr/local leak into sagelib build via distutils.cfg -- configures
setuptools
to use its vendored distutils instead of stdlib distutils - sage.features.Executable: Remove global imports from distutils #32565
sage.features.Executable
: Remove global imports fromdistutils
- sage.features, sage_setup: Replace use of distutils.errors by setuptools #32873
sage.features
,sage_setup
: Replace use ofdistutils.errors
bysetuptools
- Remove use of distutils.log #33065 Remove use of
distutils.log
- sage.env.sage_include_directories: Don't use distutils and SAGE_LIB #33137
Other issues:
- As we switch from distutils to setuptools for extension building, the tests for working distutils in
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) #36983
CC: @fchapoton @kiwifb @tornaria
Component: python3
Issue created by migration from https://trac.sagemath.org/ticket/31295