reduce repetition in download retry

This commit is contained in:
Grzegorz Bokota
2019-12-17 11:53:57 +01:00
parent e0b385a520
commit e00f03047a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
return subprocess.check_call(args, env=env, cwd=cwd, shell=shell)
# get latest pip once and for all
for _ in range(10):
for _ in range(3):
try:
call(['curl', '-L', '-o', get_pip_script, get_pip_url])
except subprocess.CalledProcessError:
+1 -1
View File
@@ -69,7 +69,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
dest_dir = os.path.dirname(dest)
if not os.path.exists(dest_dir):
os.makedirs(dest_dir)
for _ in range(10):
for _ in range(3):
try:
response = urlopen(url)
except: