public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/flatpak-module-tools] rawhide: Fix build with setuptools_scm 10
Date: Sun, 07 Jun 2026 16:33:28 GMT	[thread overview]
Message-ID: <178085000851.1.4847117705827685573.rpms-flatpak-module-tools-1e2689d91369@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-06-07 16:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178085000851.1.4847117705827685573.rpms-flatpak-module-tools-1e2689d91369@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox