File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9383,10 +9383,18 @@ def _fallback_to_download(self, version: str) -> int:
93839383 if not download_success:
93849384 if hasattr(self.config_manager, "_install_managed_python"):
93859385 try:
9386- self.config_manager._install_managed_python(
9386+ python_exe = self.config_manager._install_managed_python(
93879387 real_venv_path, full_version, omnipkg_instance=self
93889388 )
93899389 download_success = True
9390+
9391+ # CRITICAL FIX: Detect actual installed directory
9392+ # The installer may upgrade versions (e.g., 3.11.9 -> 3.11.14 for musl)
9393+ actual_install_dir = python_exe.parent.parent
9394+ if actual_install_dir.exists():
9395+ dest_path = actual_install_dir
9396+ safe_print(f" - ✅ Detected actual installation at: {dest_path}")
9397+
93909398 except Exception as e:
93919399 safe_print(
93929400 _(" - Warning: _install_managed_python failed: {}").format(e)
You can’t perform that action at this time.
0 commit comments