Don't hardcode pip version, make it dynamic at build time

This will make test_with_pip (test.test_venv.EnsurePipTest) happy.
This commit is contained in:
Miro Hrončok 2018-06-13 20:47:48 +02:00
parent 3ba1d1aadf
commit d780a93d16
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ version once Python %{pybasever} is stable.
rm -r Modules/expat
%if %{with rewheel}
%global pip_version 9.0.1
%global pip_version %(pip3 --version | cut -d' ' -f2)
sed -r -i s/'_PIP_VERSION = "[0-9.]+"'/'_PIP_VERSION = "%{pip_version}"'/ Lib/ensurepip/__init__.py
%endif