diff options
author | pje <devnull@localhost> | 2013-03-01 12:23:20 -0500 |
---|---|---|
committer | pje <devnull@localhost> | 2013-03-01 12:23:20 -0500 |
commit | 41e043fe25f0236b092246044e155ce923a390ae (patch) | |
tree | 38f1fd95280bcf4bd2e79bdad26e8e36894e5580 | |
parent | a8289809195db88b41e9b451c3a2a68e488b1434 (diff) | |
download | python-setuptools-bitbucket-41e043fe25f0236b092246044e155ce923a390ae.tar.gz |
Default index URL to use SSL version of PyPI
-rwxr-xr-x | setuptools/command/easy_install.py | 2 | ||||
-rwxr-xr-x | setuptools/package_index.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 90f29320..71794865 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -156,7 +156,7 @@ class easy_install(Command): else: self.all_site_dirs.append(normalize_path(d)) if not self.editable: self.check_site_dir() - self.index_url = self.index_url or "http://pypi.python.org/simple" + self.index_url = self.index_url or "https://pypi.python.org/simple" self.shadow_path = self.all_site_dirs[:] for path_item in self.install_dir, normalize_path(self.script_dir): if path_item not in self.shadow_path: diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 9a9c5d62..1668e765 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -149,7 +149,7 @@ user_agent = "Python-urllib/%s setuptools/%s" % ( class PackageIndex(Environment): """A distribution index that scans web pages for download URLs""" - def __init__(self, index_url="http://pypi.python.org/simple", hosts=('*',), + def __init__(self, index_url="https://pypi.python.org/simple", hosts=('*',), *args, **kw ): Environment.__init__(self,*args,**kw) |