-
-
Notifications
You must be signed in to change notification settings - Fork 664
Description
src/sage/env.py
usesdistutils.sysconfig.get_python_inc()
which is deprecated, it has no replacement in sysconfig.
Suggestion from fbissey: "we could use sysconfig.get_config_var('INCLUDEPY') which should give the same value." #33135 comment:7
We also remove the use of SAGE_LIB
in preparation of namespace packages.
This is the last use of distutils
in the Sage library, except for uses in src/sage/features/__init__.py
and src/sage/misc/cython.py
, which are merely fallbacks when setuptools
is not present.
Comment from arojas: "I don't see any code in sagelib or cython that would emit this. Is this still needed at all?"
Follow-up: Once these uses of distutils are removed, their modules can be removed from the regex in the call to filterwarnings introduced by #33135.
Part of
- Meta-ticket Meta-ticket: Replace imports from deprecated distutils #31295: Replace imports from deprecated
distutils
- Meta-ticket Meta-ticket: Remove use of SAGE_LIB and SAGE_EXTCODE variables #33037: Remove use of
SAGE_LIB
andSAGE_EXTCODE
variables
Depends on #32873
Component: misc
Author: Frédéric Chapoton, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33137