Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for SLE-Module-Legacy:aarch64
home:csena:branches:devel:languages:python
python-pip
disable-ssl-context-in-buildenv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File disable-ssl-context-in-buildenv.patch of Package python-pip
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, ssl.SSLError): # Bypass default SSLContext creation when Python # interpreter isn't built with the ssl module. _preloaded_ssl_context = None Index: pip-24.2/src/pip/_internal/cli/index_command.py =================================================================== --- pip-24.2.orig/src/pip/_internal/cli/index_command.py +++ pip-24.2/src/pip/_internal/cli/index_command.py @@ -43,7 +43,11 @@ def _create_truststore_ssl_context() -> return None ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT) - ctx.load_verify_locations(certifi.where()) + try: + ctx.load_verify_locations(certifi.where()) + except (FileNotFoundError, ssl.SSLError): + logger.warning("Disabling truststore because of missing certificates") + return None return ctx
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor