|
|
@ -25,6 +25,12 @@
|
|
|
|
%py2_shebang_fix %{expand:/usr/bin/pathfix.py -pni "%{__python2} %{py2_shbang_opts}"}
|
|
|
|
%py2_shebang_fix %{expand:/usr/bin/pathfix.py -pni "%{__python2} %{py2_shbang_opts}"}
|
|
|
|
%py3_shebang_fix %{expand:/usr/bin/pathfix.py -pni "%{__python3} %{py3_shbang_opts}"}
|
|
|
|
%py3_shebang_fix %{expand:/usr/bin/pathfix.py -pni "%{__python3} %{py3_shbang_opts}"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/Python_Upstream_Architecture_Names
|
|
|
|
|
|
|
|
%python_platform_triplet %(%{__python} -Esc "import sysconfig; print(sysconfig.get_config_var('MULTIARCH'))")
|
|
|
|
|
|
|
|
%python_ext_suffix %(%{__python} -Esc "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))")
|
|
|
|
|
|
|
|
%python3_platform_triplet %(%{__python3} -Ic "import sysconfig; print(sysconfig.get_config_var('MULTIARCH'))")
|
|
|
|
|
|
|
|
%python3_ext_suffix %(%{__python3} -Ic "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))")
|
|
|
|
|
|
|
|
|
|
|
|
# Users can use %%python only if they redefined %%__python (e.g. to %%__python3)
|
|
|
|
# Users can use %%python only if they redefined %%__python (e.g. to %%__python3)
|
|
|
|
%python() %{lua:\
|
|
|
|
%python() %{lua:\
|
|
|
|
__python = rpm.expand("%__python")\
|
|
|
|
__python = rpm.expand("%__python")\
|
|
|
|