Skip to content

Commit df26f48

Browse files
authored
Eliminate fallback for Python environment setup (#299)
Removed fallback setup for Python environment in platform configuration.
1 parent 56f3101 commit df26f48

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

platform.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -740,18 +740,6 @@ def setup_python_env(self, env):
740740
# Update SCons environment with centrally configured Python executable
741741
env.Replace(PYTHONEXE=self._penv_python)
742742
return self._penv_python, self._esptool_path
743-
744-
# This should not happen, but provide fallback
745-
logger.warning("Penv not set up in configure_default_packages, setting up now")
746-
747-
# Fallback to minimal setup if centralized configuration failed
748-
config = ProjectConfig.get_instance()
749-
core_dir = config.get("platformio", "core_dir")
750-
penv_python, esptool_path = setup_penv_minimal(self, core_dir, install_esptool=True)
751-
self._penv_python = penv_python
752-
self._esptool_path = esptool_path
753-
env.Replace(PYTHONEXE=penv_python)
754-
return penv_python, esptool_path
755743

756744
def configure_default_packages(self, variables: Dict, targets: List[str]) -> Any:
757745
"""Main configuration method with optimized package management."""

0 commit comments

Comments
 (0)