MCPcopy Create free account
hub / github.com/numpy/numpy / get_wheel_names

Function get_wheel_names

tools/download-wheels.py:47–64  ·  view source on GitHub ↗

Get wheel names from Anaconda HTML directory. This looks in the Anaconda multibuild-wheels-staging page and parses the HTML to get all the wheel names for a release version. Parameters ---------- version : str The release version. For instance, "1.18.3".

(version)

Source from the content-addressed store, hash-verified

45
46
47def get_wheel_names(version):
48 """ Get wheel names from Anaconda HTML directory.
49
50 This looks in the Anaconda multibuild-wheels-staging page and
51 parses the HTML to get all the wheel names for a release version.
52
53 Parameters
54 ----------
55 version : str
56 The release version. For instance, "1.18.3".
57
58 """
59 http = urllib3.PoolManager(cert_reqs="CERT_REQUIRED")
60 tmpl = re.compile(rf"^.*{PREFIX}-{version}{SUFFIX}")
61 index_url = f"{STAGING_URL}/files"
62 index_html = http.request("GET", index_url)
63 soup = BeautifulSoup(index_html.data, "html.parser")
64 return soup.find_all(string=tmpl)
65
66
67def download_wheels(version, wheelhouse):

Callers 1

download_wheelsFunction · 0.85

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected