rpm: do not evaluate python lib path over 100 times

Do not evaluate python_sitearch every time it's used. Override
definition in /usr/lib/rpm/macros.
This commit is contained in:
Marek Marczykowski-Górecki 2016-10-06 00:57:48 +02:00
parent a6c25b7604
commit 354cd7d994
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,4 +1,4 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%{!?version: %define version %(cat version)}