From daa4ac04366bd40adc9c9c7a91a9c303b46ff485 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Thu, 31 Aug 2023 01:53:30 +0000 Subject: [PATCH] Use %py3_test_envvars instead of manually setting PYTHONPATH --- python-setuptools-rust.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index b3f5e56..6ae9934 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -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")'