diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2014-02-14 23:14:54 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2014-02-14 23:14:54 (GMT) |
commit | e2df5cfcbd37ca88a9826c2e1647ac09964beb33 (patch) | |
tree | bd04d3ef77a029572d935796954ad18097d23abc /Lib/ensurepip | |
parent | b7bb675d3c034c3a46cc485352bbb035f74f47ff (diff) | |
download | cpython-e2df5cfcbd37ca88a9826c2e1647ac09964beb33.zip cpython-e2df5cfcbd37ca88a9826c2e1647ac09964beb33.tar.gz cpython-e2df5cfcbd37ca88a9826c2e1647ac09964beb33.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__.py | 5 |
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( |