commit | d23fed577d26eb704e427a4f65f13866cb391de1 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Tue Apr 14 11:26:24 2020 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Thu Apr 23 18:34:57 2020 +0000 |
tree | 069a4f2abe3f6135de33c775ea7590bb9a9d73fb | |
parent | e84b046a582307700a6a193270d2b61a81b57f76 [diff] |
dunfell: ensurepip not needed in rootfs This was pulled down from the facebook/openbmc repo: https://github.com/facebook/openbmc/blob/19cd2a3e9638e7a2652518c022e422c7de4c7259/common/recipes-devtools/python/python3_%25.bbappend Change-Id: I655698eca45d14e42374b0449812ce2663fe19e6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend index f689a9e..5d5e38a 100644 --- a/recipes-devtools/python/python3_%.bbappend +++ b/recipes-devtools/python/python3_%.bbappend
@@ -3,3 +3,9 @@ ALTERNATIVE_${PN}-core += "python" ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" ALTERNATIVE_TARGET[python] = "${bindir}/python3" + +# Even though python3 is built with --without-ensurepip, it still installs +# a large, compressed version of pip. Remove it to free up the space. +do_install_append_class-target() { + rm -rf ${D}${libdir}/python${PYTHON_MAJMIN}/ensurepip +}