Commit a04271df authored by Kipp Cannon's avatar Kipp Cannon

Merge branch 'rpm-test-sitecustomize' into 'master'

Remove unwanted files from rpms

See merge request !14
parents 3d973af0 72c6d2a7
Pipeline #26061 passed with stages
in 6 minutes and 9 seconds
......@@ -64,6 +64,12 @@ echo "import site; site.addsitedir('$RPM_BUILD_ROOT%{python3_sitearch}')" > $RPM
# run the tests
make check PYTHON=%{__python2} PYTHONPATH="$RPM_BUILD_ROOT%{python2_sitearch}"
make check PYTHON=%{__python3} PYTHONPATH="$RPM_BUILD_ROOT%{python3_sitearch}"
# clean up the sitecustomize hack
rm -v \
$RPM_BUILD_ROOT%{python2_sitearch}/* \
$RPM_BUILD_ROOT%{python3_sitearch}/* \
rm -vd $RPM_BUILD_ROOT%{python3_sitearch}/__pycache__/
%files -n python2-%{srcname}
%license LICENSE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment