From f1af6c80ffd25434ae5282baf2c80661501d84e3 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 22 Feb 2020 14:43:38 +0100 Subject: [PATCH] test_wheel: fix for Python 3.4 [skip ci] --- makepanda/test_wheel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makepanda/test_wheel.py b/makepanda/test_wheel.py index d3f936ec68..73e4bb8e13 100755 --- a/makepanda/test_wheel.py +++ b/makepanda/test_wheel.py @@ -32,7 +32,11 @@ def test_wheel(wheel, verbose=False): python = os.path.join(envdir, "bin", "python") # Upgrade pip inside the environment too. - if subprocess.call([python, "-m", "pip", "install", "-U", "pip"]) != 0: + pip_pkg = "pip" + if sys.version_info[0:2] == (3, 4): + pip_pkg = "pip<19.2" + + if subprocess.call([python, "-m", "pip", "install", "-U", pip_pkg]) != 0: shutil.rmtree(envdir) sys.exit(1)