summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-03 18:27:27 (GMT)
committerGitHub <noreply@github.com>2022-11-03 18:27:27 (GMT)
commit0faa0ba240e815614e5a2900e48007acac41b214 (patch)
tree20b8346df4331716aba051d6e05e039318176ba3 /Makefile.pre.in
parentb07f546ea3a574bc3016fb023c157c65a47f4849 (diff)
downloadcpython-0faa0ba240e815614e5a2900e48007acac41b214.zip
cpython-0faa0ba240e815614e5a2900e48007acac41b214.tar.gz
cpython-0faa0ba240e815614e5a2900e48007acac41b214.tar.bz2
gh-92584: Remove the distutils package (#99061)
Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in8
1 files changed, 1 insertions, 7 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 891104b..f4df488 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1947,7 +1947,6 @@ LIBSUBDIRS= asyncio \
ctypes ctypes/macholib \
curses \
dbm \
- distutils distutils/command \
email email/mime \
encodings \
ensurepip ensurepip/_bundled \
@@ -1974,8 +1973,7 @@ LIBSUBDIRS= asyncio \
xmlrpc \
zoneinfo \
__phello__
-TESTSUBDIRS= distutils/tests \
- idlelib/idle_test \
+TESTSUBDIRS= idlelib/idle_test \
test test/audiodata \
test/capath test/cjkencodings \
test/data test/decimaltestdata \
@@ -2122,10 +2120,6 @@ libinstall: all $(srcdir)/Modules/xxmodule.c
$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py \
$(DESTDIR)$(LIBDEST); \
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
- if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
- $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
- $(DESTDIR)$(LIBDEST)/distutils/tests ; \
- fi
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
$(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
-j0 -d $(LIBDEST) -f \