makepanda: test_wheel.py should upgrade pip to latest version

[skip ci]
This commit is contained in:
rdb 2018-11-08 22:46:52 +01:00
parent 6051e6f305
commit 52b2df4ebb

View File

@ -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)