vstinner / rpms / python3

Forked from rpms/python3 5 years ago
Clone
c7fb95b
%__python35 /usr/bin/python3.5
c7fb95b
%python35_sitelib %(%{__python35} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
c7fb95b
%python35_sitearch %(%{__python35} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
c7fb95b
%python35_version %(%{__python35} -c "import sys; sys.stdout.write(sys.version[:3])")
c7fb95b
%python35_version_nodots %(%{__python35} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
c7fb95b
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}