Orion Poplawski ec28c77
%__python2 /usr/bin/python2
Orion Poplawski ec28c77
%python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
Orion Poplawski ec28c77
%python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
Orion Poplawski ec28c77
%python2_version %(%{__python2} -c "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))")
Orion Poplawski ec28c77
%python2_version_nodots %(%{__python2} -c "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))")
Orion Poplawski ec28c77
Orion Poplawski ec28c77
%py2_shbang_opts -s
Orion Poplawski ec28c77
Orion Poplawski 29e6636
%py2_build() %{expand:
Orion Poplawski 6ce524f
  CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*}
Orion Poplawski 29e6636
  sleep 1
Orion Poplawski ec28c77
}
Orion Poplawski ec28c77
Orion Poplawski 29e6636
%py2_install() %{expand:
Orion Poplawski 6ce524f
  CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
Orion Poplawski ec28c77
}