Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
bad51fc7
Commit
bad51fc7
authored
Jan 13, 2017
by
Ilya Kulakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix certifi fallback is not used on Windows.
parent
dbf57427
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
setuptools/ssl_support.py
setuptools/ssl_support.py
+14
-7
No files found.
setuptools/ssl_support.py
View file @
bad51fc7
...
...
@@ -237,14 +237,21 @@ def get_win_certfile():
def find_ca_bundle():
"""Return an existing CA bundle path, or None"""
ca_bundle_path = None
if os.name == '
nt
':
return
get_win_certfile()
ca_bundle_path =
get_win_certfile()
else:
for cert_path in cert_paths:
if os.path.isfile(cert_path):
return cert_path
try:
import certifi
return certifi.where()
except (ImportError, ResolutionError, ExtractionError):
return None
ca_bundle_path = cert_path
break
if ca_bundle_path is None:
try:
import certifi
ca_bundle_path = certifi.where()
except (ImportError, ResolutionError, ExtractionError):
pass
return ca_bundle_path
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment