astral-sh / astral-sh/python-build-standalone

Regression for 3.13t virtual environments created with uv on Windows

Open
#405 5 comments 0 reactions 0 assignees View on GitHub
bug platform:windows
Dominant language
Python
Stars
4.4k
Forks
314
Avg merge
1d 9h
Merged PRs (30d)
27

Description

Upgrading to the latest release, the `python.exe` uv creates for virtual environments is broken, presumably because of #373.

```
.venv/Scripts/python --version
did not find executable at 'C:\Users\runneradmin\AppData\Roaming\uv\python\cpython-3.13.1+freethreaded-windows-x86_64-none\python3.13t.exe': The system cannot find the file specified.
```

[[source]](https://github.com/astral-sh/uv/actions/runs/12189749123/job/34005605305?pr=9663)

I presumed this was because `sys._base_executable` was returning the old path (`python3.13t.exe`), however, it looks correct in the tests I'm running. I'm not sure what is causing the incorrect path, but it was working with the previous `python-build-standalone` distribution.

I'm testing the standard library `venv` module too.

Out of an abundance of caution, I've marked [20241205](https://github.com/indygreg/python-build-standalone/releases/20241205) as a pre-release until the cause is known.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.