mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
makepanda: test_wheel.py should upgrade pip to latest version
[skip ci]
This commit is contained in:
parent
6051e6f305
commit
52b2df4ebb
@ -23,11 +23,16 @@ def test_wheel(wheel, verbose=False):
|
|||||||
else:
|
else:
|
||||||
subprocess.call([sys.executable, "-m", "virtualenv", "--clear", envdir])
|
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":
|
if sys.platform == "win32":
|
||||||
pip = os.path.join(envdir, "Scripts", "pip.exe")
|
pip = os.path.join(envdir, "Scripts", "pip.exe")
|
||||||
else:
|
else:
|
||||||
pip = os.path.join(envdir, "bin", "pip")
|
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:
|
if subprocess.call([pip, "install", "pytest", wheel]) != 0:
|
||||||
shutil.rmtree(envdir)
|
shutil.rmtree(envdir)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user