%__python2 /usr/bin/python2 %python2_sitelib %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())") %python2_sitearch %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %python2_version %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))") %python2_version_nodots %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))") %py2_shbang_opts -s # Use the slashes after expand so that the command starts on the same line as # the macro %py2_build() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*} sleep 1 } %py2_build_egg() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} bdist_egg %{?*} sleep 1 } %py2_build_wheel() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} sleep 1 } %py2_install() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} } %py2_install_egg() %{expand:\\\ mkdir -p %{buildroot}%{python2_sitelib} easy_install-%{python2_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python2_version}.egg %{?*} } %py2_install_wheel() %{expand:\\\ pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
macros.alt-python310 | File | 2.01 KB | 0644 |
|
macros.alt-python311 | File | 2.01 KB | 0644 |
|
macros.alt-python312 | File | 2.01 KB | 0644 |
|
macros.alt-python38 | File | 1.97 KB | 0644 |
|
macros.alt-python39 | File | 1.98 KB | 0644 |
|
macros.dwz | File | 1.76 KB | 0644 |
|
macros.efi-srpm | File | 3 KB | 0644 |
|
macros.environment-modules | File | 75 B | 0644 |
|
macros.fedora-misc | File | 2.76 KB | 0644 |
|
macros.fedora-misc-srpm | File | 239 B | 0644 |
|
macros.forge | File | 12.43 KB | 0644 |
|
macros.ghc-srpm | File | 414 B | 0644 |
|
macros.go-srpm | File | 7.17 KB | 0644 |
|
macros.info | File | 390 B | 0644 |
|
macros.kernel-srpm | File | 116 B | 0644 |
|
macros.ldc-srpm | File | 73 B | 0644 |
|
macros.ldconfig | File | 307 B | 0644 |
|
macros.mono-srpm | File | 181 B | 0644 |
|
macros.nodejs-srpm | File | 324 B | 0644 |
|
macros.ocaml-srpm | File | 737 B | 0644 |
|
macros.openblas-srpm | File | 104 B | 0644 |
|
macros.perl | File | 5.06 KB | 0644 |
|
macros.perl-srpm | File | 794 B | 0644 |
|
macros.pybytecompile | File | 886 B | 0644 |
|
macros.python | File | 3.36 KB | 0644 |
|
macros.python-srpm | File | 5.95 KB | 0644 |
|
macros.python2 | File | 1.82 KB | 0644 |
|
macros.python3 | File | 3.63 KB | 0644 |
|
macros.rust-srpm | File | 61 B | 0644 |
|
macros.scl | File | 13.53 KB | 0644 |
|
macros.selinux-policy | File | 6.61 KB | 0644 |
|
macros.systemd | File | 4.03 KB | 0644 |
|
macros.systemtap | File | 206 B | 0644 |
|
macros.valgrind-srpm | File | 127 B | 0644 |
|
macros.vim | File | 40 B | 0644 |
|
macros.vpath | File | 228 B | 0644 |
|