astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
22.87k stars 663 forks source link

`uv python install 3.13t` issues on Windows and Linux #8194

Open colesbury opened 5 hours ago

colesbury commented 5 hours ago

Nice work! This is my favorite way to install Python. I ran into two issues:

On Windows, uv python install 3.13t doesn't seem to install a free-threaded build.

> uv python install 3.13t
> uv python list
cpython-3.13.0-windows-x86_64-none     AppData\Roaming\uv\python\cpython-3.13.0+freethreaded-windows-x86_64-none\python.exe

> uv run -p 3.13t python -c "import sysconfig; print(sysconfig.get_config_var('Py_GIL_DISABLED'))"
0

On Linux, uv python install 3.13t installs a debug build:

> uv run -p 3.13t python -c "import sysconfig; print(sysconfig.get_config_var('CFLAGS'))"
-fno-strict-overflow -Wsign-compare -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Og -Wall  -fPIC

Whereas 3.13 (GIL) is an optimized build, like I'd expect:

> uv run -p 3.13 python -c "import sysconfig; print(sysconfig.get_config_var('CFLAGS'))"
-fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall  -fPIC
zanieb commented 5 hours ago

Thanks for the report! I'll look into this.