We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7522821 commit fd507d1Copy full SHA for fd507d1
scripts/windows_build_wheels.py
@@ -22,10 +22,14 @@
22
from wheel_builder_utils import push_dir, push_env
23
24
25
-def pip_install(python_dir, package):
+def pip_install(python_dir, package, upgrade=True):
26
pip = os.path.join(python_dir, "Scripts", "pip.exe")
27
print("Installing %s using %s" % (package, pip))
28
- check_call([pip, "install", package])
+ args = [pip, "install"]
29
+ if upgrade:
30
+ args.append("--upgrade")
31
+ args.append(package)
32
+ check_call(args)
33
34
35
def prepare_build_env(python_version):
0 commit comments