Hi Alex,
The error occurs when building python3-setuptools-scm >= 10.1.2.
This was reported by the AUH on June 23 (subject: "[OE-core] [AUH]
python3-setuptools-scm: upgrading to 10.1.2 FAILED"):
File ".../setuptools_scm-10.1.2/src/setuptools_scm/_get_version.py", line 55,
in get_version
from vcs_versioning._environment import VcsEnvironment
ModuleNotFoundError: No module named 'vcs_versioning._environment'
ERROR Backend subprocess exited when trying to invoke
get_requires_for_build_wheel
setuptools-scm's build backend calls get_version() during
get_requires_for_build_wheel, which tries to import vcs_versioning._environment
(a vcs-versioning 2.x API). The sysroot has vcs-versioning 1.1.1, which lacks
that module.
SETUPTOOLS_SCM_PRETEND_VERSION is setuptools-scm's own documented mechanism for
this situation. But if you prefer a different approach (e.g., upgrading
vcs-versioning to 2.x), happy to defer.
Thanks,
Himani
________________________________
From: Barde, Himani Ramesh <[email protected]>
Sent: Wednesday, July 8, 2026 3:54 PM
To: Mathieu Dubois-Briand <[email protected]>;
[email protected]
<[email protected]>
Cc: [email protected] <[email protected]>; MacLeod, Randy
<[email protected]>; Komati, Shiva <[email protected]>
Subject: Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 ->
10.1.2
Hi Mathieu,
Thanks for the pointer. I'll drop patch 2/2 since Alex's upgrade to 10.2.0
supersedes it.
However, patch 1/2 (exporting SETUPTOOLS_SCM_PRETEND_VERSION) is still required
- setuptools-scm 10.2.0 will fail at do_compile the same way 10.1.2 did, since
it still probes SCM metadata via vcs-versioning when built from PyPI tarballs
without a .git directory. Alex's upgrade will need this fix as a prerequisite.
Thanks,
Himani
________________________________
From: Mathieu Dubois-Briand <[email protected]>
Sent: Wednesday, July 8, 2026 3:22 PM
To: Barde, Himani Ramesh <[email protected]>;
[email protected]
<[email protected]>
Cc: [email protected] <[email protected]>; MacLeod, Randy
<[email protected]>; Komati, Shiva <[email protected]>
Subject: Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 ->
10.1.2
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
On Wed Jul 8, 2026 at 11:22 AM CEST, Himani Ramesh Barde via
lists.openembedded.org wrote:
> Signed-off-by: Himani Ramesh Barde <[email protected]>
> ---
> ...etuptools-scm_10.0.5.bb => python3-setuptools-scm_10.1.2.bb} | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> rename meta/recipes-devtools/python/{python3-setuptools-scm_10.0.5.bb =>
> python3-setuptools-scm_10.1.2.bb} (89%)
>
> diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
> b/meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
> similarity index 89%
> rename from meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
> rename to meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
> index 58eb963910..824758e3ee 100644
> --- a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
> +++ b/meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
> @@ -6,7 +6,7 @@ argument or in a SCM managed file."
> LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> "[file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2]file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
>
> -SRC_URI[sha256sum] =
> "bbba8fe754516cdefd017f4456721775e6ef9662bd7887fb52ae26813d4838c3"
> +SRC_URI[sha256sum] =
> "24079818acc46e99aae0d65b8d511fafe965970d9cbd060c7b9f7275ded520fb"
>
> PYPI_PACKAGE = "setuptools_scm"
>
Hi Himani,
We already have an upgrade to version 10.2.0 on the list:
https://lore.kernel.org/openembedded-core/[email protected]/T/#u
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
From c5b0709bb11d76863273841b75b09c771e43259b Mon Sep 17 00:00:00 2001
From: Upgrade Helper <[email protected]>
Date: Tue, 23 Jun 2026 05:09:37 +0000
Subject: [PATCH] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2
---
...etuptools-scm_10.0.5.bb => python3-setuptools-scm_10.1.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-devtools/python/{python3-setuptools-scm_10.0.5.bb => python3-setuptools-scm_10.1.2.bb} (89%)
diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb b/meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
similarity index 89%
rename from meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
rename to meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
index 3e86c4fd2c..d762dc7ed1 100644
--- a/meta/recipes-devtools/python/python3-setuptools-scm_10.0.5.bb
+++ b/meta/recipes-devtools/python/python3-setuptools-scm_10.1.2.bb
@@ -6,7 +6,7 @@ argument or in a SCM managed file."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
-SRC_URI[sha256sum] = "bbba8fe754516cdefd017f4456721775e6ef9662bd7887fb52ae26813d4838c3"
+SRC_URI[sha256sum] = "24079818acc46e99aae0d65b8d511fafe965970d9cbd060c7b9f7275ded520fb"
PYPI_PACKAGE = "setuptools_scm"
--
2.47.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240877):
https://lists.openembedded.org/g/openembedded-core/message/240877
Mute This Topic: https://lists.openembedded.org/mt/120170799/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-