diff --git a/python-wheel.spec b/python-wheel.spec index 79a2463..0655c08 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -41,7 +41,7 @@ compatible install in a way that is very close to the on-disk format. Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools -%if ! %{with bootstrap} +%if ! %{with bootstrap} && 0%{?fedora} < 32 BuildRequires: python2-pytest %endif %{?python_provide:%python_provide python2-%{pypi_name}} @@ -116,7 +116,7 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} %check rm setup.cfg -%if %{with python2} +%if %{with python2} && 0%{?fedora} < 32 PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build %endif PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build