Skip to contentSkip to conversation

python3-thrift: use PYPI_ARCHIVE_NAME_PREFIX

PATCH New Ross Burton 1 participant 2 messages Sep 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-thrift: use PYPI_ARCHIVE_NAME_PREFIX

There's a variable to handle tarball conflicts, so use it instead of appending to the SRC_URI directly.

---
 .../recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-connectivity/python-thrift/python3-thrift_0.24.0.bb +1 -1
index 911ab1ddc6..3d27b7e17d 100644
@@ -9,7 +9,7 @@ inherit pypi python_setuptools_build_meta
 DEPENDS += "python3-wheel-native"
 
 # Use different filename to prevent conflicts with thrift itself
-PYPI_SRC_URI:append = ";downloadfilename=${BP}.${PYPI_PACKAGE_EXT}"
+PYPI_ARCHIVE_NAME_PREFIX = "python-"
 
 RDEPENDS:${PN} += "\
     python3-logging \
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 python3-paho-mqtt: idiomatically set SRC_URI

Don't set PYPI_SRC_URI explicitly, instead of PYPI_PACKAGE so the correct SRC_URI is generated.

Also remove the unused variable SRCNAME.

---
 .../recipes-devtools/python/python3-paho-mqtt_2.1.0.bb       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb +2 -3
index fc8145303f..d01145c043 100644
@@ -3,13 +3,12 @@ LICENSE = "EPL-1.0 OR LicenseRef-EDL-1.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8e5f264c6988aec56808a3a11e77b913 \
                     file://edl-v10;md5=c09f121939f063aeb5235972be8c722c \
 "
-SRCNAME = "paho-mqtt"
 
 inherit pypi python_hatchling
 
-SRC_URI[sha256sum] = "12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1723834"
+PYPI_PACKAGE = "paho_mqtt"
 
-PYPI_SRC_URI = "https://files.pythonhosted.org/packages/39/15/0a6214e76d4d32e7f663b109cf71fb22561c2be0f701d67f93950cd40542/paho_mqtt-${PV}.tar.gz"
+SRC_URI[sha256sum] = "12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1723834"
 
 UPSTREAM_CHECK_PYPI_PACKAGE = "paho_mqtt"
 
Signature · 1 line
2.43.0