public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flatpak-module-tools] rawhide: Fix build with setuptools_scm 10
@ 2026-06-07 16:33 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-06-07 16:33 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/flatpak-module-tools
            Branch : rawhide
            Commit : 1e2689d913697384b442f7242d5a66ea6aa457f8
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-06-07T12:32:27-04:00
            Stats  : +5/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/flatpak-module-tools/c/1e2689d913697384b442f7242d5a66ea6aa457f8?branch=rawhide

            Log:
            Fix build with setuptools_scm 10

https://github.com/pypa/setuptools-scm/issues/1364

Resolves: rhbz#2453823

---
diff --git a/flatpak-module-tools.spec b/flatpak-module-tools.spec
index a29f412..624b548 100644
--- a/flatpak-module-tools.spec
+++ b/flatpak-module-tools.spec
@@ -88,6 +88,11 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{project_version}
 %install
 %pyproject_install
 %pyproject_save_files -l flatpak_module_tools
+%if 0%{?fedora} >= 45 || 0%{?rhel} >= 11
+# setuptools_scm 10, SETUPTOOLS_SCM_WRITE_TO_SOURCE=1 is not working
+# https://github.com/pypa/setuptools-scm/issues/1364
+rm -f %{buildroot}%{python3_sitelib}/VERSION
+%endif
 
 
 %check

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-07 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07 16:33 [rpms/flatpak-module-tools] rawhide: Fix build with setuptools_scm 10 Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox