forked from pool/python-pip
Dirk Mueller
6d4fd9323a
ca-certificates as "ssl not available" for buildenvs OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=128
14 lines
563 B
Diff
14 lines
563 B
Diff
Index: pip-24.2/src/pip/_vendor/requests/adapters.py
|
|
===================================================================
|
|
--- pip-24.2.orig/src/pip/_vendor/requests/adapters.py
|
|
+++ pip-24.2/src/pip/_vendor/requests/adapters.py
|
|
@@ -81,7 +81,7 @@ try:
|
|
_preloaded_ssl_context.load_verify_locations(
|
|
extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)
|
|
)
|
|
-except ImportError:
|
|
+except ImportError, FileNotFoundError:
|
|
# Bypass default SSLContext creation when Python
|
|
# interpreter isn't built with the ssl module.
|
|
_preloaded_ssl_context = None
|