From fb2f77d088aa86658be5f0ee0b3e85974fa92f7d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel <brecht@blender.org> Date: Tue, 7 Nov 2023 19:59:26 +0100 Subject: [PATCH] Fix macOS Python SSL still not using bundled certificate The code from 5ac392ca4 did not work on macOS since WITH_INSTALL_PORTABLE is not set there. This issue was hidden before, but now happens due to the changes in #114569 to avoid using /etc/ssl. --- source/blender/python/intern/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/intern/CMakeLists.txt b/source/blender/python/intern/CMakeLists.txt index ee3626443ce..0b15f9c5b58 100644 --- a/source/blender/python/intern/CMakeLists.txt +++ b/source/blender/python/intern/CMakeLists.txt @@ -147,7 +147,7 @@ endif() # For example `urllib.request.urlopen("https://projects.blender.org")` fails # (or any other HTTPS site). see: #102300 for details. # NOTE: that this isn't necessary on WIN32. -if(WITH_PYTHON AND WITH_PYTHON_INSTALL AND WITH_INSTALL_PORTABLE AND (NOT WIN32)) +if(WITH_PYTHON AND WITH_PYTHON_INSTALL AND (APPLE OR WITH_INSTALL_PORTABLE) AND (NOT WIN32)) # - `PYTHON_SSL_CERT_FILE` absolute path to the PEM file. find_python_module_file("certifi/cacert.pem" PYTHON_SSL_CERT_FILE _python_ssl_cert_file_relative) mark_as_advanced(PYTHON_SSL_CERT_FILE) -- GitLab