From 0d985a9264578cce40c19a71c0b9e634933d3015 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 26 Jan 2020 16:24:44 -0800 Subject: [PATCH] Add --no-cache-dir to get fresh pips every time. --- pip_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip_download.py b/pip_download.py index 2da4c2c..d6c4f06 100644 --- a/pip_download.py +++ b/pip_download.py @@ -18,7 +18,7 @@ def clean_version(version): def pip_download(package): tmpdir = tempfile.TemporaryDirectory(prefix=f'pip_download-{package}') - subprocess.call([sys.executable, '-m', 'pip', 'download', package, '-d', tmpdir.name]) + subprocess.call([sys.executable, '-m', 'pip', 'download', package, '-d', tmpdir.name, '--no-cache-dir']) downloaded_files = os.listdir(tmpdir.name) for filename in downloaded_files: filename = filename.lower()