]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3-native: Remove tests to save copying uneeded files around
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Feb 2017 12:06:06 +0000 (12:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Feb 2017 10:50:54 +0000 (10:50 +0000)
Removing these nearly halves the python3-native disk footprint meaning
more optimal sysroot operations. We don't need these tests for anything.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-native_3.5.2.bb

index 7ac3942831f09950d6f9ce8ee1e8494625dbd4b9..bf4e6860faa98099af05ead43ba94d518bc58e5a 100644 (file)
@@ -98,4 +98,7 @@ do_install() {
        for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do
                sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
        done
+
+       # Tests are large and we don't need them in the native sysroot
+       rm ${D}${libdir}/python${PYTHON_MAJMIN}/test -rf
 }