@@ -415,18 +415,18 @@ def setup_penv_minimal(platform, platformio_dir, install_esptool=True):
415
415
Raises:
416
416
SystemExit: If Python version < 3.10 or dependency installation fails
417
417
"""
418
- return _setup_python_environment_core (None , platform , platformio_dir , install_esptool )
418
+ return _setup_python_environment_core (None , platform , platformio_dir , should_install_esptool = install_esptool )
419
419
420
420
421
- def _setup_python_environment_core (env , platform , platformio_dir , install_esptool = True ):
421
+ def _setup_python_environment_core (env , platform , platformio_dir , should_install_esptool = True ):
422
422
"""
423
423
Core Python environment setup logic shared by both SCons and minimal versions.
424
424
425
425
Args:
426
426
env: SCons environment object (None for minimal setup)
427
427
platform: PlatformIO platform object
428
428
platformio_dir (str): Path to PlatformIO core directory
429
- install_esptool (bool): Whether to install esptool (default: True)
429
+ should_install_esptool (bool): Whether to install esptool (default: True)
430
430
431
431
Returns:
432
432
tuple[str, str]: (Path to penv Python executable, Path to esptool script)
@@ -476,7 +476,7 @@ def _setup_python_environment_core(env, platform, platformio_dir, install_esptoo
476
476
print ("Warning: No internet connection detected, Python dependency check will be skipped." )
477
477
478
478
# Install esptool after dependencies (if requested)
479
- if install_esptool :
479
+ if should_install_esptool :
480
480
if env is not None :
481
481
# SCons version
482
482
install_esptool (env , platform , penv_python , uv_executable )
@@ -648,4 +648,4 @@ def setup_python_environment(env, platform, platformio_dir):
648
648
Raises:
649
649
SystemExit: If Python version < 3.10 or dependency installation fails
650
650
"""
651
- return _setup_python_environment_core (env , platform , platformio_dir , install_esptool = True )
651
+ return _setup_python_environment_core (env , platform , platformio_dir , should_install_esptool = True )
0 commit comments