| |
@@ -121,47 +121,6 @@
|
| |
%toxenv %{default_toxenv}
|
| |
|
| |
|
| |
- %pyproject_buildrequires(rRxtNwe:) %{expand:\\\
|
| |
- %_set_pytest_addopts
|
| |
- # The _auto_set_build_flags feature does not do this in %%generate_buildrequires section,
|
| |
- # but we want to get an environment consistent with %%build:
|
| |
- %{?_auto_set_build_flags:%set_build_flags}
|
| |
- %{-R:
|
| |
- %{-r:%{error:The -R and -r options are mutually exclusive}}
|
| |
- %{-w:%{error:The -R and -w options are mutually exclusive}}
|
| |
- }
|
| |
- %{-N:
|
| |
- %{-r:%{error:The -N and -r options are mutually exclusive}}
|
| |
- %{-x:%{error:The -N and -x options are mutually exclusive}}
|
| |
- %{-e:%{error:The -N and -e options are mutually exclusive}}
|
| |
- %{-t:%{error:The -N and -t options are mutually exclusive}}
|
| |
- %{-w:%{error:The -N and -w options are mutually exclusive}}
|
| |
- }
|
| |
- %{-e:%{expand:%global toxenv %(%{__python3} -s %{_rpmconfigdir}/redhat/pyproject_construct_toxenv.py %{?**})}}
|
| |
- echo 'pyproject-rpm-macros' # we already have this installed, but this way, it's repoqueryable
|
| |
- echo 'python%{python3_pkgversion}-devel'
|
| |
- echo 'python%{python3_pkgversion}dist(pip) >= 19'
|
| |
- echo 'python%{python3_pkgversion}dist(packaging)'
|
| |
- %{!-N:if [ -f pyproject.toml ]; then
|
| |
- echo 'python%{python3_pkgversion}dist(toml)'
|
| |
- elif [ -f setup.py ]; then
|
| |
- # Note: If the default requirements change, also change them in the script!
|
| |
- echo 'python%{python3_pkgversion}dist(setuptools) >= 40.8'
|
| |
- echo 'python%{python3_pkgversion}dist(wheel)'
|
| |
- else
|
| |
- echo 'ERROR: Neither pyproject.toml nor setup.py found, consider using %%%%pyproject_buildrequires -N <requirements-file> if this is not a Python package.' >&2
|
| |
- exit 1
|
| |
- fi}
|
| |
- # setuptools assumes no pre-existing dist-info
|
| |
- rm -rfv *.dist-info/ >&2
|
| |
- if [ -f %{__python3} ]; then
|
| |
- mkdir -p "%{_pyproject_builddir}"
|
| |
- CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" TMPDIR="%{_pyproject_builddir}" \\\
|
| |
- RPM_TOXENV="%{toxenv}" HOSTNAME="rpmbuild" %{__python3} -Bs %{_rpmconfigdir}/redhat/pyproject_buildrequires.py %{?!_python_no_extras_requires:--generate-extras} --python3_pkgversion %{python3_pkgversion} --wheeldir %{_pyproject_wheeldir} %{?**}
|
| |
- fi
|
| |
- }
|
| |
-
|
| |
-
|
| |
%tox(e:) %{expand:\\\
|
| |
TOX_TESTENV_PASSENV="${TOX_TESTENV_PASSENV:-*}" \\
|
| |
PYTHONDONTWRITEBYTECODE=1 \\
|
| |
Is there a reason this is using python3.8 instead of the default Python?