Skip to content

Commit 2cd8598

Browse files
committed
fix: keep setuptools_scm_git_archive on EL8/EL9 for compatibility
On EL8/EL9, the system setuptools_scm is old (v3-4.x) and incompatible with newer setuptools_scm_git_archive eggs that setuptools downloads at build time. Only switch to bare setuptools_scm on distros where the _git_archive package was removed (Fedora 42+, EL10, amzn2023, SLES).
1 parent 947dd97 commit 2cd8598

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fds.spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ Requires: python%{python3_pkgversion}-psutil
6161
# For tests
6262
BuildRequires: python%{python3_pkgversion}-pytest
6363
# Version extraction (setuptools_scm_git_archive merged into setuptools_scm >= 6)
64+
%if 0%{?fedora} >= 42 || 0%{?rhel} >= 10 || 0%{?amzn} >= 2023 || 0%{?suse_version}
6465
BuildRequires: python%{python3_pkgversion}-setuptools_scm
66+
%else
67+
BuildRequires: python%{python3_pkgversion}-setuptools_scm_git_archive
68+
%endif
6569
%endif
6670

6771

0 commit comments

Comments
 (0)