Add %python3(_other)?_platform macros.

This commit is contained in:
Jason Tibbitts 2018-07-09 14:44:54 -05:00
commit ef7f75882a
3 changed files with 6 additions and 1 deletions

View file

@ -4,6 +4,7 @@
%python3_other_sitearch %(%{__python3_other} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%python3_other_version %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3])")
%python3_other_version_nodots %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
%python3_other_platform %(%{__python3_other} -Ic "import sysconfig; print(sysconfig.get_platform())")
%py3_other_shbang_opts -s