Skip to content

Obsolete DEFAULT_URL #198

Closed
Closed
@volinthius

Description

@volinthius

distribute_setup.py has obsolete DEFAULT_URL, which I think is related to this https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html.

Error I am seeing:

| Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.45.tar.gz
| Traceback (most recent call last):
|   File "setup.py", line 12, in <module>
|     distribute_setup.use_setuptools()
...
|     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
| urllib2.HTTPError: HTTP Error 403: SSL is required

Here a patch to fix that:

diff --git a/distribute_setup.py b/distribute_setup.py
index c67b752..5b31634 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -50,7 +50,7 @@ except ImportError:
         return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
 
 DEFAULT_VERSION = "0.6.45"
-DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
+DEFAULT_URL = "https://pypi.python.org/packages/source/d/distribute/"
 SETUPTOOLS_FAKED_VERSION = "0.6c11"
 
 SETUPTOOLS_PKG_INFO = """\

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions