aboutsummaryrefslogtreecommitdiffstats
path: root/distribute_setup.py
diff options
context:
space:
mode:
authorPedro Romano <pedro.romano@digitaluna.net>2012-08-30 12:18:15 +0100
committerPedro Romano <pedro.romano@digitaluna.net>2012-08-30 12:18:15 +0100
commit9c822a826b6d0ed1ecd746c6b3f8039054d2c84b (patch)
treee08237b9e701f30f9b473f8c5244b0f8f38f950e /distribute_setup.py
parentdbc8208b379835ee43224e83829b41790347e1e2 (diff)
downloadexternal_python_setuptools-9c822a826b6d0ed1ecd746c6b3f8039054d2c84b.tar.gz
external_python_setuptools-9c822a826b6d0ed1ecd746c6b3f8039054d2c84b.tar.bz2
external_python_setuptools-9c822a826b6d0ed1ecd746c6b3f8039054d2c84b.zip
New command line option to enable downloading the distribute package from an alternative location.
--HG-- branch : distribute extra : rebase_source : 114d0bb6c9c065ae369b8d0e603eb6d1d3a0b6fc
Diffstat (limited to 'distribute_setup.py')
-rw-r--r--distribute_setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index 5b10f1ef..eca355ce 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -513,8 +513,12 @@ def main(version=DEFAULT_VERSION):
parser.add_option(
'--user', dest='user_install', action='store_true', default=False,
help='install in user site package (requires Python 2.6 or later)')
+ parser.add_option(
+ '--download-base', dest='download_base', metavar="URL",
+ default=DEFAULT_URL,
+ help='alternative URL from where to download the distribute package')
options, args = parser.parse_args()
- tarball = download_setuptools()
+ tarball = download_setuptools(download_base=options.download_base)
_install(tarball, _build_install_args(options.user_install))