From b5022efef9d6948ac1cc3f2d7e126ffdb04be3b3 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 6 Dec 2024 08:28:28 -0600 Subject: [PATCH] Fix missing display of non-freethreaded Python 3.13 in `python list` (#9669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes https://github.com/indygreg/python-build-standalone/issues/407 ``` ❯ cargo run -q -- python list | head -n 2 cpython-3.13.0+freethreaded-macos-aarch64-none cpython-3.13.0-macos-aarch64-none ❯ uv python list | head -n 2 cpython-3.13.0+freethreaded-macos-aarch64-none cpython-3.12.7-macos-aarch64-none ``` --- crates/uv-python/src/installation.rs | 4 ++++ crates/uv/src/commands/python/list.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/crates/uv-python/src/installation.rs b/crates/uv-python/src/installation.rs index e1a7203c3..2b322d47f 100644 --- a/crates/uv-python/src/installation.rs +++ b/crates/uv-python/src/installation.rs @@ -327,6 +327,10 @@ impl PythonInstallationKey { &self.libc } + pub fn variant(&self) -> &PythonVariant { + &self.variant + } + /// Return a canonical name for a minor versioned executable. pub fn executable_name_minor(&self) -> String { format!( diff --git a/crates/uv/src/commands/python/list.rs b/crates/uv/src/commands/python/list.rs index b8f089cf3..42a8128b7 100644 --- a/crates/uv/src/commands/python/list.rs +++ b/crates/uv/src/commands/python/list.rs @@ -115,6 +115,7 @@ pub(crate) async fn list( *key.os(), *major, *minor, + key.variant(), key.implementation(), *key.arch(), *key.libc(), @@ -130,6 +131,7 @@ pub(crate) async fn list( *major, *minor, *patch, + key.variant(), key.implementation(), *key.arch(), key.libc(),