Use pyproject_wheel instead of calling hook directly
This commit is contained in:
parent
4f58df49c3
commit
363f52c779
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user