Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Fix Python integration test failure on Windows
  • Remove Windows-specific case in determineSourceDir() that assumed embeddable package format
  • python-build-standalone uses python/ subdirectory on all platforms including Windows

Problem

The Python integration test on Windows was failing with:

dtvem shim error: could not find python 3.11.9 executable: python executable not found at C:\Users\runneradmin\.dtvem\versions\python\3.11.9\python.exe

The code was extracting the archive correctly, but then looking for python.exe in the wrong location because it skipped the python/ subdirectory detection on Windows.

Test plan

  • Local unit tests pass
  • CI integration tests pass (Windows Python specifically)

Fixes integration test failure from https://github.com/dtvem/dtvem/actions/runs/20272683524

The python-build-standalone archives extract with a python/ subdirectory
on all platforms, including Windows. Previously, the code assumed Windows
would use the embeddable package format (files in root), causing the shim
to fail to find the Python executable after installation.

This change removes the Windows-specific case in determineSourceDir() and
lets all platforms use the same logic: check for python/ subdirectory first,
then fall back to the extract root for older embeddable packages.
@CalvinAllen CalvinAllen merged commit 5728476 into main Dec 16, 2025
39 checks passed
@CalvinAllen CalvinAllen deleted the fix/providers/python-windows-directory-structure branch December 16, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants