2016-01-12 23:52:28 +00:00
|
|
|
%__python2 /usr/bin/python2
|
|
|
|
%python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
|
|
%python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
|
|
%python2_version %(%{__python2} -c "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))")
|
|
|
|
%python2_version_nodots %(%{__python2} -c "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))")
|
|
|
|
|
|
|
|
%py2_shbang_opts -s
|
|
|
|
|
2016-11-15 23:16:16 +00:00
|
|
|
%py2_build() %{expand:
|
2016-11-15 23:18:39 +00:00
|
|
|
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*}
|
2016-11-15 23:16:16 +00:00
|
|
|
sleep 1
|
2016-01-12 23:52:28 +00:00
|
|
|
}
|
|
|
|
|
2016-11-15 23:16:16 +00:00
|
|
|
%py2_install() %{expand:
|
2016-11-15 23:18:39 +00:00
|
|
|
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
|
2016-01-12 23:52:28 +00:00
|
|
|
}
|