Skip to contentSkip to conversation

poetry_core.bbclass: adjust for pip_install_wheel.bbclass -> python_pep517.bbclass rename

PATCH New Khem Raj 1 participant 2 messages Mar 12, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/2 poetry_core.bbclass: adjust for pip_install_wheel.bbclass -> python_pep517.bbclass rename

---
v2: Adjust for renamed PEP517_WHEEL_PATH

 meta-python/classes/poetry_core.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-python/classes/poetry_core.bbclass +3 -3
index fb37c78c78..b2b80efa4f 100644
@@ -1,4 +1,4 @@
-inherit pip_install_wheel python3native setuptools3-base
+inherit python_pep517 python3native setuptools3-base
 
 DEPENDS += "python3-poetry-core-native"
 
@@ -8,8 +8,8 @@ poetry_core_do_configure () {
 
 # TODO: ideally this uses pypa/build
 poetry_core_do_compile () {
-    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
+    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
 }
-do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
+do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
 
 EXPORT_FUNCTIONS do_configure do_compile
Signature · 1 line
2.35.1
author
#1 lore raw

PATCH 2/2 python3-poetry-core: Setting PIP_INSTALL_PACKAGE is no longer needed

---
 .../recipes-devtools/python/python3-poetry-core_1.0.8.bb        | 2 --
 1 file changed, 2 deletions(-)
meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb +0 -2
index 99ec763c4d..22d7076d01 100644
@@ -23,8 +23,6 @@ SRC_URI[sha256sum] = "951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa4
 
 inherit poetry_core pypi
 
-PIP_INSTALL_PACKAGE = "poetry_core"
-
 RDEPENDS:${PN}:append:class-target = "\
     python3-compression \
     python3-core \
Signature · 1 line
2.35.1