Pedro Romano committed bb5f04f

New command line option to enable downloading the distribute package from an alternative location.

Comments (0)

Files changed (1)

         '--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))