setuptools-scm determines package version from SCM metadata (e.g. git tags).
In OpenEmbedded builds, sources are fetched as tarballs without a .git 
directory,
causing version detection to fail.

Export SETUPTOOLS_SCM_PRETEND_VERSION to override SCM-based version detection
and use the recipe version instead.

Signed-off-by: Himani Ramesh Barde <[email protected]>
---
 meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb 
b/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
index 3e86c4fd2c..58eb963910 100644
--- a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
+++ b/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
@@ -12,6 +12,8 @@ PYPI_PACKAGE = "setuptools_scm"
 
 inherit pypi python_setuptools_build_meta
 
+export SETUPTOOLS_SCM_PRETEND_VERSION = "${PV}"
+
 DEPENDS += "\
     python3-packaging-native \
     python3-vcs-versioning-native \
-- 
2.54.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240452): 
https://lists.openembedded.org/g/openembedded-core/message/240452
Mute This Topic: https://lists.openembedded.org/mt/120170812/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to