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 18:47:48 +00:00
parent a93be81b4c
commit 4eb44f11ab

View File

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