Paste
#82864: Untitled ASCII paste by 82.229.165.48
commit a231435c6a610dd6de7fe6fd251fabeae4737f95
Author: Samuel Martin <s.martin49@gmail.com>
Date: Sat Jan 19 14:00:21 2013 +0100
python3: clean build when 2to3 is disabled
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
diff --git a/package/python3/python3-3.3-102-optional-2to3.patch b/package/python3/python3-3.3-102-optional-2to3.patch
index b47619b..625d03a 100644
--- a/package/python3/python3-3.3-102-optional-2to3.patch
+++ b/package/python3/python3-3.3-102-optional-2to3.patch
@@ -61,6 +61,19 @@ Index: cpython/Makefile.pre.in
libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
@for i in $(SCRIPTDIR) $(LIBDEST); \
do \
+@@ -1144,10 +1144,12 @@ libinstall: build_all $(srcdir)/Lib/$(PL
+ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
+ -d $(LIBDEST)/site-packages -f \
+ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
++ifeq (@LIB2TO3@,yes)
+ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
+ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
+ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
+ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
++endif
+
+ # Create the PLATDIR source directory, if one wasn't distributed..
+ $(srcdir)/Lib/$(PLATDIR):
Index: cpython/setup.py
===================================================================
--- cpython.orig/setup.py