Skip to contentSkip to conversation

python3-google-api-core, python3-googleapis-common-protos: set PYPI_PACKAGE_SDIST

PATCH New [email protected] 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-google-api-core, python3-googleapis-common-protos: set PYPI_PACKAGE_SDIST

From: Martin Jansa <[email protected]>

Avoid replace("-", "_") from:
https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952

Otherwise do_fetch will fail due to different source archive and expected WORKDIR won't match.

---
 .../recipes-devtools/python/python3-google-api-core_2.19.1.bb | 4 ++++
 .../python/python3-googleapis-common-protos_1.63.2.bb         | 4 ++++
 2 files changed, 8 insertions(+)
meta-python/recipes-devtools/python/python3-google-api-core_2.19.1.bb +4 -0
index 84b384e8ca..d4e0a8e5ad 100644
@@ -7,6 +7,10 @@ inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "f4695f1e3650b316a795108a76a1c416e6afb036199d1c1f1f110916df479ffd"
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 RDEPENDS:${PN} += "\
     python3-asyncio \
     python3-datetime \
meta-python/recipes-devtools/python/python3-googleapis-common-protos_1.63.2.bb +4 -0
index 5539d19f68..5ab24440f9 100644
@@ -7,6 +7,10 @@ inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "27c5abdffc4911f28101e635de1533fb4cfd2c37fbaa9174587c799fac90aa87"
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 RDEPENDS:${PN} += "\
     python3-grpcio \
     python3-protobuf \