Add --no-cache-dir to get fresh pips every time.
This commit is contained in:
parent
7e8e20d038
commit
0d985a9264
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue