14
0
forked from pool/python-pip

- add disable-ssl-context-in-buildenv.patch: treat missing

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
This commit is contained in:
2024-08-12 17:17:37 +00:00
committed by Git OBS Bridge
parent 264767f03b
commit 9554f80c4d
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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