File setuptools-certpath.patch of Package python-setuptools.9233
Index: setuptools-18.0.1/setuptools/ssl_support.py
===================================================================
--- setuptools-18.0.1.orig/setuptools/ssl_support.py
+++ setuptools-18.0.1/setuptools/ssl_support.py
@@ -24,6 +24,7 @@ cert_paths = """
/usr/local/share/certs/ca-root.crt
/etc/ssl/cert.pem
/System/Library/OpenSSL/certs/cert.pem
+/etc/ssl/ca-bundle.pem
""".strip().split()
@@ -236,6 +237,7 @@ def find_ca_bundle():
if os.path.isfile(cert_path):
return cert_path
try:
- return pkg_resources.resource_filename('certifi', 'cacert.pem')
+ import certifi
+ return certifi.where()
except (ImportError, ResolutionError, ExtractionError):
return None