diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index 7e1f23f..9163ed2 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -100,9 +100,10 @@ done %if %{with integration_tests} export %{py3_test_envvars} +%global _pyproject_wheeldir dist for example in $(ls examples/ | grep -vE %{integration_tests_exc}); do cd "examples/${example}" - %{python3} -c 'from setuptools.build_meta import build_wheel; build_wheel("dist")' + %pyproject_wheel if [ -d "tests/" ]; then %{python3} -m venv venv --system-site-packages ./venv/bin/pip install dist/*.whl