From a17751adcf2f65bf4e453ad0b77ff6f1ccbc84ca Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Mon, 25 Jun 2018 21:26:05 -0700 Subject: [PATCH] deploy-ng: Avoid interactive prompt on packages fetched via a VCS --- direct/src/showutil/dist.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index a59e0378b7..79afefd26e 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -312,6 +312,13 @@ class build_apps(setuptools.Command): if int(pip_version[0]) < 9: 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 = [ 'download', '-d', whldir,