deploy-ng: Avoid interactive prompt on packages fetched via a VCS

This commit is contained in:
Mitchell Stokes 2018-06-25 21:26:05 -07:00
parent ca812b890c
commit a17751adcf

View File

@ -312,6 +312,13 @@ class build_apps(setuptools.Command):
if int(pip_version[0]) < 9: if int(pip_version[0]) < 9:
raise RuntimeError("pip 9.0 or greater is required, but found {}".format(pip.__version__)) raise RuntimeError("pip 9.0 or greater is required, but found {}".format(pip.__version__))
# Remove any .zip files. These are built from a VCS and block for an
# interactive prompt on subsequent downloads.
if os.path.exists(whldir):
for whl in os.listdir(whldir):
if whl.endswith('.zip'):
os.remove(os.path.join(whldir, whl))
pip_args = [ pip_args = [
'download', 'download',
'-d', whldir, '-d', whldir,