From e8771b153dc9d981b04c650c16072d3dfafba6c9 Mon Sep 17 00:00:00 2001 From: Harisuddin Mohamed Isa Date: Thu, 4 Jun 2020 22:01:33 +0800 Subject: python3: Restore .py source files Due to PEP 3147, an earlier commit which removes .py files on rootfs broke python since .pyc files have been moved to a new directory called __pycache__ and hence no modules can be imported. This reverts those changes. (From meta-phosphor rev: 63f021136249f4f30251de79e910e54dc191a5ea) Signed-off-by: Harisuddin Mohamed Isa Change-Id: If94ddcd0146c4312c6352db8ff1309d19f2efa96 Signed-off-by: Andrew Geissler --- meta-phosphor/recipes-devtools/python/python3_%.bbappend | 7 ------- 1 file changed, 7 deletions(-) (limited to 'meta-phosphor/recipes-devtools') diff --git a/meta-phosphor/recipes-devtools/python/python3_%.bbappend b/meta-phosphor/recipes-devtools/python/python3_%.bbappend index 69f4e9ab0..324b28ce0 100644 --- a/meta-phosphor/recipes-devtools/python/python3_%.bbappend +++ b/meta-phosphor/recipes-devtools/python/python3_%.bbappend @@ -10,11 +10,4 @@ do_install_append_class-target() { # Even though python3 is built with --without-ensurepip, it still installs # a large, compressed version of pip. Remove it to free up the space. rm -rf ${D}${libdir}/python${PYTHON_MAJMIN}/ensurepip - - # Remove all python .py files from python recipe. Only the .pyc - # files are required. - # The _sysconfigdata*.py files are system configuration files generated - # during build time. It's used in the yocto packaging process so - # it is required to remain in the image. - find ${D}${libdir}/python${PYTHON_MAJMIN} -name \*.py ! -name _sysconfigdata*.py -exec rm {} \; } -- cgit v1.2.3