Manylinux downloader and extractor

This commit is contained in:
Valentin Niess
2025-05-19 17:13:29 +02:00
parent 08ee36fc45
commit 1fdb439e70
7 changed files with 581 additions and 15 deletions

View File

@@ -32,6 +32,10 @@ def urlretrieve(url, filename=None):
else:
debug('DOWNLOAD', '%s as %s', url, filename)
parent_directory = os.path.dirname(filename)
if not os.path.exists(parent_directory):
os.makedirs(parent_directory)
if _urlretrieve is None:
data = urllib2.urlopen(url).read()
with open(filename, 'w') as f: