diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-pip_22.0.3.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-pip_22.0.3.bb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb index 889a6bf8ad..c4671f5017 100644 --- a/meta/recipes-devtools/python/python3-pip_22.0.3.bb +++ b/meta/recipes-devtools/python/python3-pip_22.0.3.bb | |||
| @@ -4,17 +4,32 @@ SECTION = "devel/python" | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=63ec52baf95163b597008bb46db68030" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=63ec52baf95163b597008bb46db68030" |
| 6 | 6 | ||
| 7 | inherit pypi setuptools_build_meta | ||
| 8 | |||
| 7 | DEPENDS += "python3 python3-setuptools-native" | 9 | DEPENDS += "python3 python3-setuptools-native" |
| 8 | 10 | ||
| 9 | inherit pypi setuptools3 | 11 | # To avoid a dependency loop; we bootstrap -native |
| 12 | DEPENDS:remove:class-native = "python3-pip-native" | ||
| 13 | DEPENDS:append:class-native = " unzip-native" | ||
| 10 | 14 | ||
| 11 | SRC_URI += "file://0001-change-shebang-to-python3.patch" | 15 | SRC_URI += "file://0001-change-shebang-to-python3.patch" |
| 12 | 16 | ||
| 13 | SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0" | 17 | SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0" |
| 14 | 18 | ||
| 19 | PYPA_WHEEL ?= "${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" | ||
| 20 | |||
| 21 | do_install:class-native() { | ||
| 22 | # Bootstrap to prevent dependency loop in python3-pip-native | ||
| 23 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
| 24 | unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \ | ||
| 25 | bbfatal_log "Failed to unzip wheel: ${PYPA_WHEEL}. Check the logs." | ||
| 26 | } | ||
| 27 | |||
| 15 | do_install:append() { | 28 | do_install:append() { |
| 16 | # Install as pip3 and leave pip2 as default | 29 | # Install as pip3 and leave pip2 as default |
| 17 | rm ${D}/${bindir}/pip | 30 | if [ -e ${D}/${bindir}/pip ]; then |
| 31 | rm ${D}/${bindir}/pip | ||
| 32 | fi | ||
| 18 | } | 33 | } |
| 19 | 34 | ||
| 20 | RDEPENDS:${PN} = "\ | 35 | RDEPENDS:${PN} = "\ |
