2020-05-19 19:21:19 +03:00
|
|
|
%__python38 /usr/bin/python3.8
|
2020-05-19 15:22:48 +03:00
|
|
|
%python38_sitelib %(%{__python38} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
|
|
%python38_sitearch %(%{__python38} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
|
|
%python38_version %(%{__python38} -c "import sys; print(sys.version[0:3])")
|
|
|
|
%py38_ver %(%{__python38} -c "import sys; v=sys.version_info[:2]; print('%%d.%%d'%%v)" 2>/dev/null || echo PYTHON38-NOT-FOUND)
|
|
|
|
%py38_prefix %(%{__python38} -c "import sys; print(sys.prefix)" 2>/dev/null || echo PYTHON38-NOT-FOUND)
|
|
|
|
%py38_platsitedir %python38_sitearch
|
|
|
|
%py38_puresitedir %python38_sitelib
|
|
|
|
%py38_incdir %(%{__python38} -c 'from distutils.sysconfig import get_python_inc; print(get_python_inc())' 2>/dev/null || echo PYTHON38-INCLUDEDIR-NOT-FOUND)
|
|
|
|
%py38dir %{_builddir}/python38-%{name}-%{version}-%{release}
|
2020-02-22 19:51:51 +03:00
|
|
|
# %%py_setup setup.py # in rpm-openmandriva-setup
|
2016-07-07 15:13:03 +03:00
|
|
|
|
2020-05-19 15:22:48 +03:00
|
|
|
%py38_shbang_opts -s
|
2016-07-07 15:13:03 +03:00
|
|
|
|
2020-05-19 15:22:48 +03:00
|
|
|
%py38_build() %{expand:\
|
2020-05-19 20:19:17 +03:00
|
|
|
CFLAGS="%{optflags}" %{__python38} %{py_setup} %{?py_setup_args} build --executable="%{__python38} %{py38_shbang_opts}" %{?*}\
|
2016-07-07 15:13:03 +03:00
|
|
|
}
|
|
|
|
|
2020-05-19 15:22:48 +03:00
|
|
|
%py38_install() %{expand:\
|
|
|
|
CFLAGS="%{optflags}" %{__python38} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}\
|
2016-07-07 15:13:03 +03:00
|
|
|
}
|
2016-11-15 18:01:43 +03:00
|
|
|
|
2020-05-19 15:22:48 +03:00
|
|
|
%py38_test() %{expand:\
|
|
|
|
%{__python38} %{py_setup} %{?py_setup_args} test %{?1}\
|
2016-11-15 18:01:43 +03:00
|
|
|
}
|