8ef2281
%__python3_other /usr/bin/python3.6
8ef2281
8ef2281
%python3_other_sitelib %(%{__python3_other} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
8ef2281
%python3_other_sitearch %(%{__python3_other} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
8ef2281
%python3_other_version %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3])")
8ef2281
%python3_other_version_nodots %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
ef7f758
%python3_other_platform %(%{__python3_other} -Ic "import sysconfig; print(sysconfig.get_platform())")
8ef2281
8ef2281
%py3_other_shbang_opts -s
8ef2281
8ef2281
# Use the slashes after expand so that the command starts on the same line as
8ef2281
# the macro
8ef2281
%py3_other_build() %{expand:\\\
8ef2281
  CFLAGS="%{optflags}" %{__python3_other} %{py_setup} %{?py_setup_args} build --executable="%{__python3_other} %{py3_other_shbang_opts}" %{?*}
8ef2281
  sleep 1
8ef2281
}
8ef2281
8ef2281
%py3_other_build_egg() %{expand:\\\
8ef2281
  CFLAGS="%{optflags}" %{__python3_other} %{py_setup} %{?py_setup_args} bdist_egg %{?*}
8ef2281
  sleep 1
8ef2281
}
8ef2281
8ef2281
%py3_other_build_wheel() %{expand:\\\
8ef2281
  CFLAGS="%{optflags}" %{__python3_other} %{py_setup} %{?py_setup_args} bdist_wheel %{?*}
8ef2281
  sleep 1
8ef2281
}
8ef2281
8ef2281
%py3_other_install() %{expand:\\\
8ef2281
  CFLAGS="%{optflags}" %{__python3_other} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
8ef2281
}
8ef2281
8ef2281
%py3_other_install_egg() %{expand:\\\
8ef2281
  mkdir -p %{buildroot}%{python3_other_sitelib}
8ef2281
  easy_install-%{python3_other_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python3_other_version}.egg %{?*}
8ef2281
}
8ef2281
8ef2281
%py3_other_install_wheel() %{expand:\\\
8ef2281
  pip%{python3_other_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps
8ef2281
}