Call get-pip.py on Windows with dependency constraint flags

This commit is contained in:
Joe Rickerby
2020-03-24 21:09:07 +00:00
parent 4b6df458fd
commit 13554d0490
+1 -1
View File
@@ -140,7 +140,7 @@ def build(project_dir, output_dir, test_command, before_test, test_requires, tes
# make sure pip is installed
if not os.path.exists(os.path.join(installation_path, 'Scripts', 'pip.exe')):
shell(['python', get_pip_script], env=env, cwd="C:\\cibw")
shell(['python', get_pip_script] + dependency_constraint_flags, env=env, cwd="C:\\cibw")
assert os.path.exists(os.path.join(installation_path, 'Scripts', 'pip.exe'))
where_pip = subprocess.check_output(['where', 'pip'], env=env, universal_newlines=True).splitlines()[0].strip()
if where_pip.strip() != os.path.join(installation_path, 'Scripts', 'pip.exe'):