diff options
Diffstat (limited to 'meta-phosphor/recipes-devtools/python/python3_%.bbappend')
-rw-r--r-- | meta-phosphor/recipes-devtools/python/python3_%.bbappend | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta-phosphor/recipes-devtools/python/python3_%.bbappend b/meta-phosphor/recipes-devtools/python/python3_%.bbappend index a2dafcf6c3..c3de5a05f2 100644 --- a/meta-phosphor/recipes-devtools/python/python3_%.bbappend +++ b/meta-phosphor/recipes-devtools/python/python3_%.bbappend @@ -1,9 +1,5 @@ inherit update-alternatives -ALTERNATIVE:${PN}-core += "python" -ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" -ALTERNATIVE_TARGET[python] = "${bindir}/python3" - # python3 takes up a lot of space that most embedded systems # do not have, so remove some un-needed files from the rootfs do_install:append:class-target() { @@ -11,3 +7,8 @@ do_install:append:class-target() { # a large, compressed version of pip. Remove it to free up the space. rm -rf ${D}${libdir}/python${PYTHON_MAJMIN}/ensurepip } + +ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" + +ALTERNATIVE:${PN}-core += "python" +ALTERNATIVE_TARGET[python] = "${bindir}/python3" |