Add --no-cache-dir to get fresh pips every time.

This commit is contained in:
voussoir 2020-01-26 16:24:44 -08:00
parent 7e8e20d038
commit 0d985a9264

View file

@ -18,7 +18,7 @@ def clean_version(version):
def pip_download(package): def pip_download(package):
tmpdir = tempfile.TemporaryDirectory(prefix=f'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) downloaded_files = os.listdir(tmpdir.name)
for filename in downloaded_files: for filename in downloaded_files:
filename = filename.lower() filename = filename.lower()