diff options
author | Joseph A. Lutz <joseph.lutz@novatechweb.com> | 2016-02-25 17:02:35 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-02 22:39:07 +0000 |
commit | bee0f633f0b5ef2439b8e5d54cbfc7bc1f17f47e (patch) | |
tree | 3dce1acee75ed7debdda09ffb95d78b837684464 /meta/recipes-devtools | |
parent | f24eb53979c18bdfc7b0806055de86e812d78e63 (diff) | |
download | openembedded-core-contrib-bee0f633f0b5ef2439b8e5d54cbfc7bc1f17f47e.tar.gz |
automake: don't delete .pyc files
The patch being removed in this commit removes *.pyc files from being
compiled. This dose not allow a user to select which files are included
in the image. Since optimization is no longer the default for python
we should have the ability to choose what is included in the image.
Signed-off-by: Joseph A. Lutz <joseph.lutz@novatechweb.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch | 42 | ||||
-rw-r--r-- | meta/recipes-devtools/automake/automake_1.15.bb | 1 |
2 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch b/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch deleted file mode 100644 index f8334a72128..00000000000 --- a/meta/recipes-devtools/automake/automake/py-compile-compile-only-optimized-byte-code.patch +++ /dev/null @@ -1,42 +0,0 @@ -Upstream-Status: Inappropriate [embedded specific] - -* OE-Core's python creates the same binary output - for both pyc and pyo, so disable the creation of - pyc files by automake. - -Signed-off-by: Andreas Oberritter <obi@opendreambox.org> - -Updated for automake-1.12.6 - -Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> - -diff -Nurd automake-1.12.6/lib/py-compile automake-1.12.6/lib/py-compile ---- automake-1.12.6/lib/py-compile 2012-12-13 21:57:31.000000000 +0200 -+++ automake-1.12.6/lib/py-compile 2012-12-27 19:34:01.426015140 +0200 -@@ -115,26 +115,6 @@ - filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" - fi - --$PYTHON -c " --import sys, os, py_compile, imp -- --files = '''$files''' -- --sys.stdout.write('Byte-compiling python modules...\n') --for file in files.split(): -- $pathtrans -- $filetrans -- if not os.path.exists(filepath) or not (len(filepath) >= 3 -- and filepath[-3:] == '.py'): -- continue -- sys.stdout.write(file) -- sys.stdout.flush() -- if hasattr(imp, 'get_tag'): -- py_compile.compile(filepath, imp.cache_from_source(filepath), path) -- else: -- py_compile.compile(filepath, filepath + 'c', path) --sys.stdout.write('\n')" || exit $? -- - # this will fail for python < 1.5, but that doesn't matter ... - $PYTHON -O -c " - import sys, os, py_compile, imp diff --git a/meta/recipes-devtools/automake/automake_1.15.bb b/meta/recipes-devtools/automake/automake_1.15.bb index 85494b4af05..a3c72fd3349 100644 --- a/meta/recipes-devtools/automake/automake_1.15.bb +++ b/meta/recipes-devtools/automake/automake_1.15.bb @@ -19,7 +19,6 @@ RDEPENDS_${PN} += "\ RDEPENDS_${PN}_class-native = "autoconf-native hostperl-runtime-native" SRC_URI += " file://python-libdir.patch \ - file://py-compile-compile-only-optimized-byte-code.patch \ file://buildtest.patch \ file://performance.patch \ file://new_rt_path_for_test-driver.patch" |