Use new macros %python_wheel_dir and %python_wheel_pkg_prefix
This does not actually change anything on Fedora.
This commit is contained in:
parent
9d4d4ef0bd
commit
192e39e1a9
@ -45,9 +45,9 @@ BuildRequires: python3-pytest-timeout
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# RPM installed wheels
|
# RPM installed wheels
|
||||||
BuildRequires: python-pip-wheel
|
BuildRequires: %{python_wheel_pkg_prefix}-pip-wheel
|
||||||
BuildRequires: python-setuptools-wheel
|
BuildRequires: %{python_wheel_pkg_prefix}-setuptools-wheel
|
||||||
BuildRequires: python-wheel-wheel
|
BuildRequires: %{python_wheel_pkg_prefix}-wheel-wheel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
virtualenv is a tool to create isolated Python environments. virtualenv
|
virtualenv is a tool to create isolated Python environments. virtualenv
|
||||||
@ -74,9 +74,9 @@ Obsoletes: python3-virtualenv-python26 < 16.6
|
|||||||
Provides: virtualenv = %{version}-%{release}
|
Provides: virtualenv = %{version}-%{release}
|
||||||
|
|
||||||
# RPM installed wheels
|
# RPM installed wheels
|
||||||
Requires: python-pip-wheel
|
Requires: %{python_wheel_pkg_prefix}-pip-wheel
|
||||||
Requires: python-setuptools-wheel
|
Requires: %{python_wheel_pkg_prefix}-setuptools-wheel
|
||||||
Requires: python-wheel-wheel
|
Requires: %{python_wheel_pkg_prefix}-wheel-wheel
|
||||||
|
|
||||||
%description -n python3-virtualenv
|
%description -n python3-virtualenv
|
||||||
virtualenv is a tool to create isolated Python environments. virtualenv
|
virtualenv is a tool to create isolated Python environments. virtualenv
|
||||||
@ -112,6 +112,10 @@ rm src/virtualenv/seed/wheels/embed/wheel-*
|
|||||||
|
|
||||||
test ! -f src/virtualenv/seed/embed/wheels/*.whl
|
test ! -f src/virtualenv/seed/embed/wheels/*.whl
|
||||||
|
|
||||||
|
# Replace hardcoded path from rpm-wheels.patch by %%{python_wheel_dir}
|
||||||
|
# On Fedora, this should change nothing, but when building for RHEL9+, it will
|
||||||
|
sed -i "s|/usr/share/python-wheels|%{python_wheel_dir}|" src/virtualenv/util/path/_system_wheels.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build code
|
# Build code
|
||||||
%{py3_build}
|
%{py3_build}
|
||||||
|
Loading…
Reference in New Issue
Block a user