Skip to content

Commit b62a815

Browse files
committed
uv-interpreter: cut alternative implementation of site-packages python
This is a separate commit so that the alternative is preserved in history.
1 parent 8122d80 commit b62a815

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

crates/uv-interpreter/src/interpreter.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -421,21 +421,6 @@ impl Interpreter {
421421
} else {
422422
"python"
423423
}
424-
425-
// This implementation sniffs out what the directory name
426-
// might be from sysconfig, but at the time of writing, this
427-
// seems a little more risky than the simpler but less robust
428-
// implementation above.
429-
/*
430-
const FALLBACK: &str = "python";
431-
let Some(base) = self.include().file_name().and_then(|name| name.to_str()) else {
432-
return FALLBACK;
433-
};
434-
base.char_indices()
435-
.take_while(|(_, ch)| ch.is_ascii_alphabetic())
436-
.last()
437-
.map_or(FALLBACK, |(end, ch)| &base[..end + ch.len_utf8()])
438-
*/
439424
}
440425

441426
/// Return the [`Layout`] environment used to install wheels into this interpreter.

0 commit comments

Comments
 (0)