Adapt wheel installation to be more like %pyproject_install, use %python3

Related: rhbz#1932713
This commit is contained in:
Miro Hrončok 2021-08-09 20:47:13 +02:00 committed by Charalampos Stratakis
parent 6c4d14d340
commit c2ef944b25

View File

@ -273,16 +273,20 @@ rm -rf docs/build/html/{.doctrees,.buildinfo}
%install %install
# The following is similar to %%py3_install_wheel, but we don't have # The following is similar to %%pyproject_install, but we don't have
# /usr/bin/pip yet, so we install using the wheel directly. # /usr/bin/pip yet, so we install using the wheel directly.
# (This is not standard wheel usage, but the pip wheel supports it -- see # (This is not standard wheel usage, but the pip wheel supports it -- see
# pip/__main__.py) # pip/__main__.py)
%{__python3} dist/%{python_wheelname}/pip install \ %{python3} dist/%{python_wheelname}/pip install \
--root %{buildroot} \ --root %{buildroot} \
--no-deps \ --no-deps \
--no-cache-dir \ --disable-pip-version-check \
--no-index \ --progress-bar off \
--verbose \
--ignore-installed \ --ignore-installed \
--no-warn-script-location \
--no-index \
--no-cache-dir \
--find-links dist \ --find-links dist \
'pip==%{upstream_version}' 'pip==%{upstream_version}'