|
@@ -1,4 +1,4 @@
|
|
|
-From 0e4f0a525ea0a68f6d4c5349c301da2e9b0c8ac9 Mon Sep 17 00:00:00 2001
|
|
|
+From 18e19402fab3939223a58481734e685d25c3102b Mon Sep 17 00:00:00 2001
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
Date: Wed, 22 Feb 2017 17:15:31 -0800
|
|
|
Subject: [PATCH] Add an option to disable lib2to3
|
|
@@ -21,10 +21,10 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
3 files changed, 21 insertions(+), 8 deletions(-)
|
|
|
|
|
|
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
|
|
-index 403380e181..f5d0573067 100644
|
|
|
+index e87bc1fcd32..1a0ab0de426 100644
|
|
|
--- a/Makefile.pre.in
|
|
|
+++ b/Makefile.pre.in
|
|
|
-@@ -1868,7 +1868,9 @@ ifeq (@PYDOC@,yes)
|
|
|
+@@ -1881,7 +1881,9 @@ ifeq (@PYDOC@,yes)
|
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
|
|
|
endif
|
|
|
-rm -f $(DESTDIR)$(BINDIR)/2to3
|
|
@@ -34,7 +34,7 @@ index 403380e181..f5d0573067 100644
|
|
|
if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
|
|
|
rm -f $(DESTDIR)$(BINDIR)/python3-32$(EXE); \
|
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-32$(EXE) python3-32$(EXE)) \
|
|
|
-@@ -1914,7 +1916,6 @@ LIBSUBDIRS= asyncio \
|
|
|
+@@ -1927,7 +1929,6 @@ LIBSUBDIRS= asyncio \
|
|
|
idlelib idlelib/Icons \
|
|
|
importlib importlib/resources importlib/metadata \
|
|
|
json \
|
|
@@ -42,7 +42,7 @@ index 403380e181..f5d0573067 100644
|
|
|
logging \
|
|
|
multiprocessing multiprocessing/dummy \
|
|
|
re \
|
|
|
-@@ -1934,10 +1935,6 @@ LIBSUBDIRS= asyncio \
|
|
|
+@@ -1947,10 +1948,6 @@ LIBSUBDIRS= asyncio \
|
|
|
TESTSUBDIRS= ctypes/test \
|
|
|
distutils/tests \
|
|
|
idlelib/idle_test \
|
|
@@ -52,8 +52,8 @@ index 403380e181..f5d0573067 100644
|
|
|
- lib2to3/tests/data/fixers/myfixes \
|
|
|
test \
|
|
|
test/audiodata \
|
|
|
- test/capath \
|
|
|
-@@ -2013,6 +2010,14 @@ ifeq (@PYDOC@,yes)
|
|
|
+ test/certdata \
|
|
|
+@@ -2074,6 +2071,14 @@ ifeq (@PYDOC@,yes)
|
|
|
LIBSUBDIRS += pydoc_data
|
|
|
endif
|
|
|
|
|
@@ -68,7 +68,7 @@ index 403380e181..f5d0573067 100644
|
|
|
TEST_MODULES=@TEST_MODULES@
|
|
|
libinstall: all $(srcdir)/Modules/xxmodule.c
|
|
|
@for i in $(SCRIPTDIR) $(LIBDEST); \
|
|
|
-@@ -2115,10 +2120,12 @@ ifeq (@PYC_BUILD@,yes)
|
|
|
+@@ -2176,10 +2181,12 @@ ifeq (@PYC_BUILD@,yes)
|
|
|
-j0 -d $(LIBDEST)/site-packages -f \
|
|
|
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
|
|
endif
|
|
@@ -82,10 +82,10 @@ index 403380e181..f5d0573067 100644
|
|
|
# bpo-21536: Misc/python-config.sh is generated in the build directory
|
|
|
# from $(srcdir)Misc/python-config.sh.in.
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
-index f68ea72321..d8e10cf2b2 100644
|
|
|
+index d56d8f9d1c5..bf91fb2f824 100644
|
|
|
--- a/configure.ac
|
|
|
+++ b/configure.ac
|
|
|
-@@ -7078,6 +7078,12 @@ PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no"], [test "$ac_cv_fu
|
|
|
+@@ -7147,6 +7147,12 @@ PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no"], [test "$ac_cv_fu
|
|
|
# substitute multiline block, must come after last PY_STDLIB_MOD()
|
|
|
AC_SUBST([MODULE_BLOCK])
|
|
|
|
|
@@ -99,10 +99,10 @@ index f68ea72321..d8e10cf2b2 100644
|
|
|
AC_CONFIG_FILES(Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh)
|
|
|
AC_CONFIG_FILES([Modules/Setup.bootstrap Modules/Setup.stdlib])
|
|
|
diff --git a/setup.py b/setup.py
|
|
|
-index 3e55f5b2e0..c490b0b08f 100644
|
|
|
+index d8647724650..e02591dae10 100644
|
|
|
--- a/setup.py
|
|
|
+++ b/setup.py
|
|
|
-@@ -1594,11 +1594,11 @@ class DummyProcess:
|
|
|
+@@ -1598,11 +1598,11 @@ class DummyProcess:
|
|
|
import warnings
|
|
|
warnings.filterwarnings("ignore",category=DeprecationWarning)
|
|
|
|
|
@@ -118,5 +118,5 @@ index 3e55f5b2e0..c490b0b08f 100644
|
|
|
name = "Python",
|
|
|
version = sys.version.split()[0],
|
|
|
--
|
|
|
-2.34.1
|
|
|
+2.44.0
|
|
|
|