From 68ed3c396699311bd7ed19fad7c19172d8646107 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 12 Mar 2014 13:51:22 +0100 Subject: [PATCH] python: add patch to not precompile .pyc and .pyo files when cross-compiling --- python/python/no-compileall.patch.cross | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 python/python/no-compileall.patch.cross diff --git a/python/python/no-compileall.patch.cross b/python/python/no-compileall.patch.cross new file mode 100644 index 000000000..7ad7b534e --- /dev/null +++ b/python/python/no-compileall.patch.cross @@ -0,0 +1,35 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../python/no-compileall.patch.cross +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Don't precompile the .pyc and .pyo files when cross-compiling + +--- a/Makefile.pre.in 2014-03-12 13:03:54.601957446 +0100 ++++ b/Makefile.pre.in 2014-03-12 13:04:56.299370332 +0100 +@@ -1006,12 +1006,12 @@ + $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ + $(DESTDIR)$(LIBDEST)/distutils/tests ; \ + fi +- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ ++ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ + -d $(LIBDEST) \ + -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ + $(DESTDIR)$(LIBDEST) +- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ ++ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ + -d $(LIBDEST) \ + -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \