Skip to content

Commit 7a5d265

Browse files
committed
Create (e.g.) python3.13t executables in uv venv
1 parent 7eeccc7 commit 7a5d265

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/uv-virtualenv/src/virtualenv.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ pub(crate) fn create(
242242
interpreter.python_minor(),
243243
)),
244244
)?;
245+
if interpreter.gil_disabled() {
246+
uv_fs::replace_symlink(
247+
"python",
248+
scripts.join(format!(
249+
"python{}.{}t",
250+
interpreter.python_major(),
251+
interpreter.python_minor(),
252+
)),
253+
)?;
254+
}
245255

246256
if interpreter.markers().implementation_name() == "pypy" {
247257
uv_fs::replace_symlink(

0 commit comments

Comments
 (0)