]> code.ossystems Code Review - openembedded-core.git/commit
python3: Build and package precompiled modules
authorDominic Sacré <dominic.sacre@gmx.de>
Tue, 25 Oct 2016 17:20:17 +0000 (19:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Nov 2016 15:47:09 +0000 (15:47 +0000)
commitbb4d689769703177dbb0df0935e15016b879f42b
tree32fdf1e2b06cb8054e9f242f9449f1e2ac0b4cbd
parent6a56ff7885f43abdb3b9bfeb733be6fee1de237c
python3: Build and package precompiled modules

Remove the patch that was applied in the python3 and python3-native
recipes to skip compilation of python modules.

Modify generate-manifest-3.5.py to match '__pycache__' directories in
FILES_*.
This is necessary because Python3 puts .pyc files in '__pycache__'
subdirectories one level below the corresponding .py files, whereas in
Python2 they used to be right next to the sources.

This change significantly reduces the startup overhead of Python3
scripts. For example, on a Cortex-A9, "python3 -c pass" took 0.40s
before, and 0.19s after.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python-3.5-manifest.inc
meta/recipes-devtools/python/python3-native_3.5.2.bb
meta/recipes-devtools/python/python3/020-dont-compile-python-files.patch [deleted file]
meta/recipes-devtools/python/python3_3.5.2.bb
scripts/contrib/python/generate-manifest-3.5.py