Skip to content

Commit a17751a

Browse files
committed
deploy-ng: Avoid interactive prompt on packages fetched via a VCS
1 parent ca812b8 commit a17751a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

direct/src/showutil/dist.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ def download_wheels(self, platform):
312312
if int(pip_version[0]) < 9:
313313
raise RuntimeError("pip 9.0 or greater is required, but found {}".format(pip.__version__))
314314

315+
# Remove any .zip files. These are built from a VCS and block for an
316+
# interactive prompt on subsequent downloads.
317+
if os.path.exists(whldir):
318+
for whl in os.listdir(whldir):
319+
if whl.endswith('.zip'):
320+
os.remove(os.path.join(whldir, whl))
321+
315322
pip_args = [
316323
'download',
317324
'-d', whldir,

0 commit comments

Comments
 (0)