From f8bcf6d5f606cc560a236c210ba9153cd08068d9 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 30 Oct 2011 16:29:11 +0100 Subject: [PATCH] Python: add patch to dont build pyc and pyo bytecode Signed-off-by: Stephan Raue --- ..._dont_generate_pyo_and_pyc_files-0.1.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/lang/Python/patches/Python-2.7.2-005_dont_generate_pyo_and_pyc_files-0.1.patch diff --git a/packages/lang/Python/patches/Python-2.7.2-005_dont_generate_pyo_and_pyc_files-0.1.patch b/packages/lang/Python/patches/Python-2.7.2-005_dont_generate_pyo_and_pyc_files-0.1.patch new file mode 100644 index 0000000000..8dc36012c5 --- /dev/null +++ b/packages/lang/Python/patches/Python-2.7.2-005_dont_generate_pyo_and_pyc_files-0.1.patch @@ -0,0 +1,28 @@ +diff -Naur Python-2.7.2/Makefile.pre.in Python-2.7.2.patch/Makefile.pre.in +--- Python-2.7.2/Makefile.pre.in 2011-10-30 11:41:31.642572564 +0100 ++++ Python-2.7.2.patch/Makefile.pre.in 2011-10-30 11:44:08.289571802 +0100 +@@ -928,24 +928,6 @@ + done; \ + done + $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt +- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ +- $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ +- -d $(LIBDEST) -f \ +- -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ +- $(DESTDIR)$(LIBDEST) +- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ +- $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ +- -d $(LIBDEST) -f \ +- -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ +- $(DESTDIR)$(LIBDEST) +- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ +- $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ +- -d $(LIBDEST)/site-packages -f \ +- -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages +- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ +- $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ +- -d $(LIBDEST)/site-packages -f \ +- -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages + -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()" +