From 52b2df4ebb340e3a7f0b5507e1bf6cce1c00a378 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 8 Nov 2018 22:46:52 +0100 Subject: [PATCH] makepanda: test_wheel.py should upgrade pip to latest version [skip ci] --- makepanda/test_wheel.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makepanda/test_wheel.py b/makepanda/test_wheel.py index 00555a5e60..f4491964a9 100755 --- a/makepanda/test_wheel.py +++ b/makepanda/test_wheel.py @@ -23,11 +23,16 @@ def test_wheel(wheel, verbose=False): else: subprocess.call([sys.executable, "-m", "virtualenv", "--clear", envdir]) - # Install pytest into the environment, as well as our wheel. + # Make sure pip is up-to-date first. if sys.platform == "win32": pip = os.path.join(envdir, "Scripts", "pip.exe") else: pip = os.path.join(envdir, "bin", "pip") + if subprocess.call([pip, "install", "-U", "pip"]) != 0: + shutil.rmtree(envdir) + sys.exit(1) + + # Install pytest into the environment, as well as our wheel. if subprocess.call([pip, "install", "pytest", wheel]) != 0: shutil.rmtree(envdir) sys.exit(1)