summaryrefslogtreecommitdiffstats
path: root/Lib/ensurepip
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2014-02-14 23:14:54 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2014-02-14 23:14:54 (GMT)
commitc00fa6387d9a2ceb3b4c4fa94646279c8b70fb4f (patch)
treef12c28e8ab319b2180c41a3f792ac93d73622495 /Lib/ensurepip
parente84fde981dd957f53ec81e2d6f14a7cf418a9925 (diff)
downloadcpython-c00fa6387d9a2ceb3b4c4fa94646279c8b70fb4f.zip
cpython-c00fa6387d9a2ceb3b4c4fa94646279c8b70fb4f.tar.gz
cpython-c00fa6387d9a2ceb3b4c4fa94646279c8b70fb4f.tar.bz2
Issue #19744: Handle missing SSL/TLS in ensurepip
- now also allows POSIX installation with SSL/TLS missing - a goal for pip 1.6 is to allow local use without SSL/TLS
Diffstat (limited to 'Lib/ensurepip')
-rw-r--r--Lib/ensurepip/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index e8d6abe..3f4e449 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -144,6 +144,11 @@ def _uninstall_helper(*, verbosity=0):
def _main(argv=None):
+ if ssl is None:
+ print("Ignoring ensurepip failure: {}".format(_MISSING_SSL_MESSAGE),
+ file=sys.stderr)
+ return
+
import argparse
parser = argparse.ArgumentParser(prog="python -m ensurepip")
parser.add_argument(