Use %py3_test_envvars instead of manually setting PYTHONPATH

This commit is contained in:
Maxwell G 2023-08-31 01:53:30 +00:00
parent 2b66248c7f
commit daa4ac0436
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -99,7 +99,7 @@ done
%pytest tests/ setuptools_rust/ --import-mode importlib -k '%{test_ignores}'
%if %{with integration_tests}
export PYTHONPATH=%{buildroot}%{python3_sitelib}
export %{py3_test_envvars}
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")'