mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-18 02:35:01 +00:00
Fix parsing of gnueabi
libc variants in Python version requests (#7975)
``` ❯ cargo run -q -- python install cpython-3.12.6-linux-armv7-gnueabihf Searching for Python versions matching: cpython-3.12.6-linux-armv7-gnueabihf Installed Python 3.12.6 in 2.10s + cpython-3.12.6-linux-armv7-gnueabihf ❯ uv python install cpython-3.12.6-linux-armv7-gnueabihf error: Cannot download managed Python for request: executable name `cpython-3.12.6-linux-armv7-gnueabihf` ```
This commit is contained in:
parent
3fce2f3733
commit
c69b808e43
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ impl FromStr for Libc {
|
|||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s {
|
||||
"gnu" => Ok(Self::Some(target_lexicon::Environment::Gnu)),
|
||||
"gnueabi" => Ok(Self::Some(target_lexicon::Environment::Gnueabi)),
|
||||
"gnueabihf" => Ok(Self::Some(target_lexicon::Environment::Gnueabihf)),
|
||||
"musl" => Ok(Self::Some(target_lexicon::Environment::Musl)),
|
||||
"none" => Ok(Self::None),
|
||||
_ => Err(Error::UnknownLibc(s.to_string())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue