Move the __python2/3 macros to the python-srpm-macros subpackage

This facilitates using the %%{__python2/3} in Build/Requires
This commit is contained in:
Tomas Orsava 2018-09-20 11:59:50 +02:00
commit beaa2eec4f
4 changed files with 14 additions and 3 deletions

View file

@ -1,4 +1,3 @@
%__python3 /usr/bin/python3
%python3_sitelib %(%{__python3} -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%python3_sitearch %(%{__python3} -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%python3_version %(%{__python3} -Ic "import sys; sys.stdout.write(sys.version[:3])")