File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
crates/uv-interpreter/src Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -421,21 +421,6 @@ impl Interpreter {
421
421
} else {
422
422
"python"
423
423
}
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
- */
439
424
}
440
425
441
426
/// Return the [`Layout`] environment used to install wheels into this interpreter.
You can’t perform that action at this time.
0 commit comments