From 4cbdb20e751b7ed5be51c4e97ebc8df259acaa9f Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 22 Sep 2025 15:06:17 +0200 Subject: [PATCH] Eliminate fallback for Python environment setup Removed fallback setup for Python environment in platform configuration. --- platform.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/platform.py b/platform.py index aa51bc4e6..3ed4fe126 100644 --- a/platform.py +++ b/platform.py @@ -740,18 +740,6 @@ def setup_python_env(self, env): # Update SCons environment with centrally configured Python executable env.Replace(PYTHONEXE=self._penv_python) return self._penv_python, self._esptool_path - - # This should not happen, but provide fallback - logger.warning("Penv not set up in configure_default_packages, setting up now") - - # Fallback to minimal setup if centralized configuration failed - config = ProjectConfig.get_instance() - core_dir = config.get("platformio", "core_dir") - penv_python, esptool_path = setup_penv_minimal(self, core_dir, install_esptool=True) - self._penv_python = penv_python - self._esptool_path = esptool_path - env.Replace(PYTHONEXE=penv_python) - return penv_python, esptool_path def configure_default_packages(self, variables: Dict, targets: List[str]) -> Any: """Main configuration method with optimized package management."""