Use pyproject_wheel instead of calling hook directly

This commit is contained in:
Maxwell G 2023-08-31 01:56:55 +00:00
parent 4f58df49c3
commit 363f52c779
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

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