retry on macos with cli arguments
This commit is contained in:
@@ -51,14 +51,8 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
|
|||||||
return subprocess.check_call(args, env=env, cwd=cwd, shell=shell)
|
return subprocess.check_call(args, env=env, cwd=cwd, shell=shell)
|
||||||
|
|
||||||
# get latest pip once and for all
|
# get latest pip once and for all
|
||||||
for _ in range(3):
|
|
||||||
try:
|
call(['curl', '-L', '-o', '--retry', '3', '--retry-delay', '3', get_pip_script, get_pip_url])
|
||||||
call(['curl', '-L', '-o', get_pip_script, get_pip_url])
|
|
||||||
except subprocess.CalledProcessError:
|
|
||||||
sleep(3)
|
|
||||||
continue
|
|
||||||
break
|
|
||||||
assert os.path.exists(get_pip_script)
|
|
||||||
|
|
||||||
for config in python_configurations:
|
for config in python_configurations:
|
||||||
# if this version of python isn't installed, get it from python.org and install
|
# if this version of python isn't installed, get it from python.org and install
|
||||||
|
|||||||
Reference in New Issue
Block a user