Skip to content

Commit 38c2382

Browse files
committed
test_wheel: fix upgrading pip on Windows
pip can only be upgraded by running `python -m pip` on Windows. [skip ci]
1 parent 223c532 commit 38c2382

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

makepanda/test_wheel.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def test_wheel(wheel, verbose=False):
2424
subprocess.call([sys.executable, "-m", "virtualenv", "--clear", envdir])
2525

2626
# Make sure pip is up-to-date first.
27-
if sys.platform == "win32":
28-
pip = os.path.join(envdir, "Scripts", "pip.exe")
29-
else:
30-
pip = os.path.join(envdir, "bin", "pip")
31-
if subprocess.call([pip, "install", "-U", "pip"]) != 0:
27+
if subprocess.call([sys.executable, "-m", "pip", "install", "-U", "pip"]) != 0:
3228
shutil.rmtree(envdir)
3329
sys.exit(1)
3430

3531
# Install pytest into the environment, as well as our wheel.
32+
if sys.platform == "win32":
33+
pip = os.path.join(envdir, "Scripts", "pip.exe")
34+
else:
35+
pip = os.path.join(envdir, "bin", "pip")
3636
if subprocess.call([pip, "install", "pytest", wheel]) != 0:
3737
shutil.rmtree(envdir)
3838
sys.exit(1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy