Move %__python definition to the srpm macros, so it is always present
This commit is contained in:
parent
d38048d54d
commit
536b2efe4e
2 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# unversioned macros: used with user defined __python, no longer part of rpm >= 4.15
|
||||
%__python %{error:attempt to use unversioned python, define %%__python to %{_bindir}/python2 or %{_bindir}/python3 explicitly}
|
||||
# __python is defined to error by default in the srpm macros
|
||||
%python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
||||
%python_sitearch %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
||||
%python_version %(%{__python} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue