Skip to content

Commit 05f4034

Browse files
committed
When Python 3.11.9 gets upgraded to 3.11.14, dest_path will be updated to point to the actual location.
1 parent 5b62705 commit 05f4034

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/omnipkg/core.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)