mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-30 11:37:24 +00:00
uv-interpreter: cut alternative implementation of site-packages python
This is a separate commit so that the alternative is preserved in history.
This commit is contained in:
parent
8122d809a4
commit
b62a81549b
1 changed files with 0 additions and 15 deletions
|
|
@ -421,21 +421,6 @@ impl Interpreter {
|
|||
} else {
|
||||
"python"
|
||||
}
|
||||
|
||||
// This implementation sniffs out what the directory name
|
||||
// might be from sysconfig, but at the time of writing, this
|
||||
// seems a little more risky than the simpler but less robust
|
||||
// implementation above.
|
||||
/*
|
||||
const FALLBACK: &str = "python";
|
||||
let Some(base) = self.include().file_name().and_then(|name| name.to_str()) else {
|
||||
return FALLBACK;
|
||||
};
|
||||
base.char_indices()
|
||||
.take_while(|(_, ch)| ch.is_ascii_alphabetic())
|
||||
.last()
|
||||
.map_or(FALLBACK, |(end, ch)| &base[..end + ch.len_utf8()])
|
||||
*/
|
||||
}
|
||||
|
||||
/// Return the [`Layout`] environment used to install wheels into this interpreter.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue