Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3967e7

Browse files
committed
make sure to break if download works
1 parent 6b40c8a commit b3967e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setupext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ def do_custom_build(self):
10701070
urlretrieve(tarball_url, tarball_path)
10711071
except:
10721072
print("Failed to download {0}".format(tarball_url))
1073+
else:
1074+
break
10731075
if not os.path.isfile(tarball_path):
10741076
raise IOError("Failed to download freetype")
10751077
if get_file_hash(tarball_path) == LOCAL_FREETYPE_HASH:

0 commit comments

Comments
 (0)