Add macro with pypy version (aka 5.10, not 2.7)

This commit is contained in:
Miro Hrončok 2018-04-11 01:24:26 +02:00
parent de213fa2bd
commit 52f7eb6f95
2 changed files with 2 additions and 0 deletions

View File

@ -2,3 +2,4 @@
%pypy_sitelib %(%{__pypy} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%pypy_sitearch %(%{__pypy} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%pypy_version %(%{__pypy} -c "import sys; sys.stdout.write(sys.version[:3])")
%pypy_pypy_version %(%{__pypy} -c "import sys; sys.stdout.write('{}.{}'.format(sys.pypy_version_info.major, sys.pypy_version_info.minor))")

View File

@ -2,3 +2,4 @@
%pypy2_sitelib %(%{__pypy2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%pypy2_sitearch %(%{__pypy2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%pypy2_version %(%{__pypy2} -c "import sys; sys.stdout.write(sys.version[:3])")
%pypy2_pypy_version %(%{__pypy2} -c "import sys; sys.stdout.write('{}.{}'.format(sys.pypy_version_info.major, sys.pypy_version_info.minor))")