Skip to content

Commit 571a1d1

Browse files
committed
Avoid redownload in build_wheels.py
1 parent 33ba6de commit 571a1d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/wheelbuilder/build_wheels.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ def ensure_installed(name):
7575

7676

7777
def download(url, out):
78-
print("Downloading", url, flush=True)
79-
urlretrieve(url, out)
78+
if not os.path.exists(out):
79+
print("Downloading", url, flush=True)
80+
urlretrieve(url, out)
81+
else:
82+
print("Using previously downloaded", out, flush=True)
8083

8184

8285
def extract(archive):

0 commit comments

Comments
 (0)