Skip to content

Commit 5c22d9e

Browse files
authored
Refactor _setup_certifi_env function parameters
1 parent ec62adf commit 5c22d9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

builder/penv_setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,7 @@ def _install_esptool_from_tl_install(platform, python_exe, uv_executable):
606606
# Don't exit - esptool installation is not critical for penv setup
607607

608608

609-
610-
611-
612-
def _setup_certifi_env(env, python_exe=None):
609+
def _setup_certifi_env(env, python_exe):
613610
"""
614611
Setup certifi environment variables from the given python_exe virtual environment.
615612
Uses a subprocess call to extract certifi path from that environment to guarantee penv usage.
@@ -631,6 +628,7 @@ def _setup_certifi_env(env, python_exe=None):
631628
os.environ["SSL_CERT_FILE"] = cert_path
632629
os.environ["REQUESTS_CA_BUNDLE"] = cert_path
633630
os.environ["CURL_CA_BUNDLE"] = cert_path
631+
os.environ["GIT_SSL_CAINFO"] = cert_path
634632

635633
# Also propagate to SCons environment if available
636634
if env is not None:

0 commit comments

Comments
 (0)