From c8e9f14172af73752d80bae1e24e54a2d284e1a1 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 13 2018 09:41:53 +0000 Subject: Don't hardcode pip version, make it dynamic at build time This will make test_with_pip (test.test_venv.EnsurePipTest) happy. --- diff --git a/python3.spec b/python3.spec index 2729349..959cfbf 100644 --- a/python3.spec +++ b/python3.spec @@ -618,7 +618,7 @@ rm -r Modules/expat rm -r Modules/zlib %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 %endif