Build using setuptools on EL <= 9
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
966470a96b
commit
b127a043a6
@ -1,7 +1,9 @@
|
||||
%if ! 0%{?rhel} || 0%{?rhel} >= 10
|
||||
%bcond_without testcoverage
|
||||
%bcond_with setup_py
|
||||
%else
|
||||
%bcond_with testcoverage
|
||||
%bcond_without setup_py
|
||||
%endif
|
||||
|
||||
%if ! 0%{?rhel} || 0%{?rhel} >= 9
|
||||
@ -36,7 +38,12 @@ BuildRequires: sed
|
||||
|
||||
%if %{without compatbuild}
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
%if %{without setup.py}
|
||||
%{pyproject_buildrequires}
|
||||
%else
|
||||
( %{pyproject_buildrequires} ) | grep -v poetry
|
||||
echo 'python3dist(setuptools)'
|
||||
%endif
|
||||
%else
|
||||
BuildRequires: python3dist(setuptools)
|
||||
%endif
|
||||
@ -65,7 +72,7 @@ addopts =
|
||||
PYTESTINI
|
||||
%endif
|
||||
|
||||
%if %{with compatbuild}
|
||||
%if %{with setup_py}
|
||||
cat << SETUPPY > setup.py
|
||||
from setuptools import setup
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user