Andrew Geissler | 68be073 | 2020-04-14 11:25:29 -0500 | [diff] [blame] | 1 | inherit update-alternatives |
| 2 | |
Andrew Geissler | a5f6774 | 2020-04-15 10:26:16 -0500 | [diff] [blame] | 3 | # python3 takes up a lot of space that most embedded systems |
| 4 | # do not have, so remove some un-needed files from the rootfs |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 5 | do_install:append:class-target() { |
Andrew Geissler | a5f6774 | 2020-04-15 10:26:16 -0500 | [diff] [blame] | 6 | # Even though python3 is built with --without-ensurepip, it still installs |
| 7 | # a large, compressed version of pip. Remove it to free up the space. |
Andrew Geissler | b280837 | 2020-04-14 11:26:24 -0500 | [diff] [blame] | 8 | rm -rf ${D}${libdir}/python${PYTHON_MAJMIN}/ensurepip |
| 9 | } |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 10 | |
| 11 | ALTERNATIVE_LINK_NAME[python] = "${bindir}/python" |
| 12 | |
| 13 | ALTERNATIVE:${PN}-core += "python" |
| 14 | ALTERNATIVE_TARGET[python] = "${bindir}/python3" |