diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-05-31 19:07:57 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2020-10-30 08:04:27 -0600 |
commit | 505ae178178bac36929bf8afe5d523a4d659531c (patch) | |
tree | 5bb9abf1b0c6955e897796944dfc4b3935efeb6b /tools/download-wheels.py | |
parent | 43683b3256a86659f230dcadbcde1f8020398bfa (diff) | |
download | numpy-505ae178178bac36929bf8afe5d523a4d659531c.tar.gz |
DOC: Improve documentation of download-wheels
- List dependences
- Give examples
Diffstat (limited to 'tools/download-wheels.py')
-rw-r--r-- | tools/download-wheels.py | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/tools/download-wheels.py b/tools/download-wheels.py index 941440ca9..28b3fc7ad 100644 --- a/tools/download-wheels.py +++ b/tools/download-wheels.py @@ -1,9 +1,29 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 +# -*- encoding:utf-8 -*- """ -Download NumPy wheels from Anaconda staging area. +Script to download NumPy wheels from the Anaconda staging area. + +Usage:: + + $ ./tools/download-wheels.py <version> -w <optional-wheelhouse> + +The default wheelhouse is ``release/installers``. + +Dependencies +------------ + +- beautifulsoup4 +- urllib3 + +Examples +-------- + +While in the repository root:: + + $ python tools/download-wheels.py 1.19.0 + $ python tools/download-wheels.py 1.19.0 -w ~/wheelhouse """ -import sys import os import re import shutil @@ -18,6 +38,7 @@ __version__ = '0.1' STAGING_URL = 'https://anaconda.org/multibuild-wheels-staging/numpy' PREFIX = 'numpy' + def get_wheel_names(version): """ Get wheel names from Anaconda HTML directory. @@ -69,7 +90,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument( "version", - help="NumPy version to download.") + help="NumPy version to download.") parser.add_argument( "-w", "--wheelhouse", default=os.path.join(os.getcwd(), "release", "installers"), |