* [PATCH 0/2]python3-setuptools-scm: fix build and upgrade to 10.1.2
@ 2026-07-08 9:22 Himani Ramesh Barde
2026-07-08 9:22 ` [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection Himani Ramesh Barde
2026-07-08 9:22 ` [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 Himani Ramesh Barde
0 siblings, 2 replies; 9+ messages in thread
From: Himani Ramesh Barde @ 2026-07-08 9:22 UTC (permalink / raw)
To: openembedded-core
Cc: tgamblin, randy.macleod, Shiva.Komati, Himani Ramesh Barde
The AUH attempted to upgrade python3-setuptools-scm to 10.1.2 but
failed at do_compile because setuptools-scm tries to determine its
version from SCM metadata, which isn't available in OE tarball builds.
Patch 1 exports SETUPTOOLS_SCM_PRETEND_VERSION to bypass SCM-based
version detection. Patch 2 completes the upgrade to 10.1.2.
Build-tested: python3-setuptools-scm, python3-vcs-versioning, and
python3-pytest all build successfully with this series applied.
Himani Ramesh Barde (2):
python3-setuptools-scm: avoid SCM-based version detection
python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2
...uptools-scm_10.0.5.bb => python3-setuptools-scm_10.1.2.bb} | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
rename meta/recipes-devtools/python/{python3-setuptools-scm_10.0.5.bb => python3-setuptools-scm_10.1.2.bb} (84%)
--
2.54.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection 2026-07-08 9:22 [PATCH 0/2]python3-setuptools-scm: fix build and upgrade to 10.1.2 Himani Ramesh Barde @ 2026-07-08 9:22 ` Himani Ramesh Barde 2026-07-08 11:16 ` [OE-core] " Alexander Kanavin 2026-07-08 9:22 ` [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 Himani Ramesh Barde 1 sibling, 1 reply; 9+ messages in thread From: Himani Ramesh Barde @ 2026-07-08 9:22 UTC (permalink / raw) To: openembedded-core Cc: tgamblin, randy.macleod, Shiva.Komati, Himani Ramesh Barde 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 <HimaniRamesh.Barde@windriver.com> --- 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 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection 2026-07-08 9:22 ` [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection Himani Ramesh Barde @ 2026-07-08 11:16 ` Alexander Kanavin 0 siblings, 0 replies; 9+ messages in thread From: Alexander Kanavin @ 2026-07-08 11:16 UTC (permalink / raw) To: HimaniRamesh.Barde Cc: openembedded-core, tgamblin, randy.macleod, Shiva.Komati On Wed, 8 Jul 2026 at 11:36, Himani Ramesh Barde via lists.openembedded.org <HimaniRamesh.Barde=windriver.com@lists.openembedded.org> wrote: > > 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. Can you please show the error that occurs without this patch? I suspect this is not the correct fix. Pypi tarballs are supposed to work without special arrangements, and if they don't, it's an upstream issue. Alex ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-08 9:22 [PATCH 0/2]python3-setuptools-scm: fix build and upgrade to 10.1.2 Himani Ramesh Barde 2026-07-08 9:22 ` [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection Himani Ramesh Barde @ 2026-07-08 9:22 ` Himani Ramesh Barde 2026-07-08 9:52 ` [OE-core] " Mathieu Dubois-Briand 1 sibling, 1 reply; 9+ messages in thread From: Himani Ramesh Barde @ 2026-07-08 9:22 UTC (permalink / raw) To: openembedded-core Cc: tgamblin, randy.macleod, Shiva.Komati, Himani Ramesh Barde Signed-off-by: Himani Ramesh Barde <HimaniRamesh.Barde@windriver.com> --- ...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" -SRC_URI[sha256sum] = "bbba8fe754516cdefd017f4456721775e6ef9662bd7887fb52ae26813d4838c3" +SRC_URI[sha256sum] = "24079818acc46e99aae0d65b8d511fafe965970d9cbd060c7b9f7275ded520fb" PYPI_PACKAGE = "setuptools_scm" -- 2.54.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-08 9:22 ` [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 Himani Ramesh Barde @ 2026-07-08 9:52 ` Mathieu Dubois-Briand 2026-07-08 10:24 ` Barde, Himani Ramesh 0 siblings, 1 reply; 9+ messages in thread From: Mathieu Dubois-Briand @ 2026-07-08 9:52 UTC (permalink / raw) To: HimaniRamesh.Barde, openembedded-core Cc: tgamblin, randy.macleod, Shiva.Komati On Wed Jul 8, 2026 at 11:22 AM CEST, Himani Ramesh Barde via lists.openembedded.org wrote: > Signed-off-by: Himani Ramesh Barde <HimaniRamesh.Barde@windriver.com> > --- > ...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" > > -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/20260706171701.70536-31-alex.kanavin@gmail.com/T/#u Thanks, Mathieu -- Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-08 9:52 ` [OE-core] " Mathieu Dubois-Briand @ 2026-07-08 10:24 ` Barde, Himani Ramesh 2026-07-08 11:44 ` Alexander Kanavin 2026-07-09 5:51 ` Barde, Himani Ramesh 0 siblings, 2 replies; 9+ messages in thread From: Barde, Himani Ramesh @ 2026-07-08 10:24 UTC (permalink / raw) To: Mathieu Dubois-Briand, openembedded-core@lists.openembedded.org Cc: tgamblin@baylibre.com, MacLeod, Randy, Komati, Shiva [-- Attachment #1: Type: text/plain, Size: 2713 bytes --] 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 <mathieu.dubois-briand@bootlin.com> Sent: Wednesday, July 8, 2026 3:22 PM To: Barde, Himani Ramesh <HimaniRamesh.Barde@windriver.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> Cc: tgamblin@baylibre.com <tgamblin@baylibre.com>; MacLeod, Randy <Randy.MacLeod@windriver.com>; Komati, Shiva <Shiva.Komati@windriver.com> 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 <HimaniRamesh.Barde@windriver.com> > --- > ...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" > > -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/20260706171701.70536-31-alex.kanavin@gmail.com/T/#u Thanks, Mathieu -- Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com [-- Attachment #2: Type: text/html, Size: 5232 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-08 10:24 ` Barde, Himani Ramesh @ 2026-07-08 11:44 ` Alexander Kanavin 2026-07-09 5:51 ` Barde, Himani Ramesh 1 sibling, 0 replies; 9+ messages in thread From: Alexander Kanavin @ 2026-07-08 11:44 UTC (permalink / raw) To: HimaniRamesh.Barde Cc: Mathieu Dubois-Briand, openembedded-core@lists.openembedded.org, tgamblin@baylibre.com, MacLeod, Randy, Komati, Shiva On Wed, 8 Jul 2026 at 13:40, Barde, Himani Ramesh via lists.openembedded.org <HimaniRamesh.Barde=windriver.com@lists.openembedded.org> wrote: > 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. I don't think it will. I tested this update, and it does not fail. What is the error that you are seeing? Alex ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-08 10:24 ` Barde, Himani Ramesh 2026-07-08 11:44 ` Alexander Kanavin @ 2026-07-09 5:51 ` Barde, Himani Ramesh 2026-07-14 13:22 ` Alexander Kanavin 1 sibling, 1 reply; 9+ messages in thread From: Barde, Himani Ramesh @ 2026-07-09 5:51 UTC (permalink / raw) To: Mathieu Dubois-Briand, openembedded-core@lists.openembedded.org Cc: tgamblin@baylibre.com, MacLeod, Randy, Komati, Shiva [-- Attachment #1.1: Type: text/plain, Size: 4240 bytes --] 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 <HimaniRamesh.Barde@windriver.com> Sent: Wednesday, July 8, 2026 3:54 PM To: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> Cc: tgamblin@baylibre.com <tgamblin@baylibre.com>; MacLeod, Randy <Randy.MacLeod@windriver.com>; Komati, Shiva <Shiva.Komati@windriver.com> 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 <mathieu.dubois-briand@bootlin.com> Sent: Wednesday, July 8, 2026 3:22 PM To: Barde, Himani Ramesh <HimaniRamesh.Barde@windriver.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> Cc: tgamblin@baylibre.com <tgamblin@baylibre.com>; MacLeod, Randy <Randy.MacLeod@windriver.com>; Komati, Shiva <Shiva.Komati@windriver.com> 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 <HimaniRamesh.Barde@windriver.com> > --- > ...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/20260706171701.70536-31-alex.kanavin@gmail.com/T/#u Thanks, Mathieu -- Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com [-- Attachment #1.2: Type: text/html, Size: 10798 bytes --] [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: 0001-python3-setuptools-scm-upgrade-10.0.5-10.1.2.patch --] [-- Type: text/x-patch; name="0001-python3-setuptools-scm-upgrade-10.0.5-10.1.2.patch", Size: 1308 bytes --] From c5b0709bb11d76863273841b75b09c771e43259b Mon Sep 17 00:00:00 2001 From: Upgrade Helper <auh@yoctoproject.org> 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 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 2026-07-09 5:51 ` Barde, Himani Ramesh @ 2026-07-14 13:22 ` Alexander Kanavin 0 siblings, 0 replies; 9+ messages in thread From: Alexander Kanavin @ 2026-07-14 13:22 UTC (permalink / raw) To: HimaniRamesh.Barde Cc: Mathieu Dubois-Briand, openembedded-core@lists.openembedded.org, tgamblin@baylibre.com, MacLeod, Randy, Komati, Shiva On Tue, 14 Jul 2026 at 14:21, Barde, Himani Ramesh via lists.openembedded.org <HimaniRamesh.Barde=windriver.com@lists.openembedded.org> wrote: > 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! The issue is that newer setuptools-scm needs newer vcs-versioning as well - but this was not clear from the commit with the 'pretend_version' fix or your comment to Mathieu. The point I wanted to make for the future is: - it's better to include any error you see into the commit with the fix, so the error is documented together with the fix and can be seen by reviewers - if there's a choice between a workaround, and version update for a dependency, it's better to update the versions in lockstep. Workarounds tend to be forgotten, they linger around long after the issue is otherwise fixed, and it becomes difficult to understand why they are there and test whether they're still needed. In any case, both updates have already landed in master, so nothing needs to be done. Alex ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-07-14 13:22 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-07-08 9:22 [PATCH 0/2]python3-setuptools-scm: fix build and upgrade to 10.1.2 Himani Ramesh Barde 2026-07-08 9:22 ` [PATCH 1/2] python3-setuptools-scm: avoid SCM-based version detection Himani Ramesh Barde 2026-07-08 11:16 ` [OE-core] " Alexander Kanavin 2026-07-08 9:22 ` [PATCH 2/2] python3-setuptools-scm: upgrade 10.0.5 -> 10.1.2 Himani Ramesh Barde 2026-07-08 9:52 ` [OE-core] " Mathieu Dubois-Briand 2026-07-08 10:24 ` Barde, Himani Ramesh 2026-07-08 11:44 ` Alexander Kanavin 2026-07-09 5:51 ` Barde, Himani Ramesh 2026-07-14 13:22 ` Alexander Kanavin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox