You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: install x64 .NET host and fix PYTHONHOME for uv venv
Two failures after moving Python provisioning to uv:
- macOS: "Could not find 'dotnet' host for the 'X64' architecture". macos-15
is Apple Silicon, so setup-dotnet installed an arm64 host while the tests run
--runtime any-x64. Pass the architecture input (only available on
setup-dotnet@main) so the x64 host is installed.
- All others: "ModuleNotFoundError: No module named 'encodings'". PYTHONHOME was
set to sys.prefix, which under a uv venv points at the venv dir (no stdlib).
When .NET hosts the interpreter it could not find the stdlib. Point PYTHONHOME
at sys.base_prefix and add the venv site-packages via PYTHONPATH, and scope
both to the .NET-hosts-Python steps only -- the venv python running pytest
must keep its own sys.prefix.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments