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
|
%if ! 0%{?rhel} || 0%{?rhel} >= 10
|
||||||
%bcond_without testcoverage
|
%bcond_without testcoverage
|
||||||
|
%bcond_with setup_py
|
||||||
%else
|
%else
|
||||||
%bcond_with testcoverage
|
%bcond_with testcoverage
|
||||||
|
%bcond_without setup_py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! 0%{?rhel} || 0%{?rhel} >= 9
|
%if ! 0%{?rhel} || 0%{?rhel} >= 9
|
||||||
@ -36,7 +38,12 @@ BuildRequires: sed
|
|||||||
|
|
||||||
%if %{without compatbuild}
|
%if %{without compatbuild}
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%if %{without setup.py}
|
||||||
|
%{pyproject_buildrequires}
|
||||||
|
%else
|
||||||
|
( %{pyproject_buildrequires} ) | grep -v poetry
|
||||||
|
echo 'python3dist(setuptools)'
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(setuptools)
|
||||||
%endif
|
%endif
|
||||||
@ -65,7 +72,7 @@ addopts =
|
|||||||
PYTESTINI
|
PYTESTINI
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with compatbuild}
|
%if %{with setup_py}
|
||||||
cat << SETUPPY > setup.py
|
cat << SETUPPY > setup.py
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user