From 4eb44f11abc25f99daedb423fa237da3ca00c33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Jun 2018 18:47:48 +0000 Subject: [PATCH] Don't hardcode pip version, make it dynamic at build time This will make test_with_pip (test.test_venv.EnsurePipTest) happy. --- python36.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python36.spec b/python36.spec index 8926092..d0070cc 100644 --- a/python36.spec +++ b/python36.spec @@ -654,7 +654,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