mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
[red-knot] Add support for --system-site-packages
virtual environments (#12759)
This commit is contained in:
parent
83db48d316
commit
37b9bac403
11 changed files with 770 additions and 199 deletions
|
@ -145,10 +145,6 @@ fn try_resolve_module_resolution_settings(
|
|||
tracing::info!("Custom typeshed directory: {custom_typeshed}");
|
||||
}
|
||||
|
||||
if !site_packages.is_empty() {
|
||||
tracing::info!("Site-packages directories: {site_packages:?}");
|
||||
}
|
||||
|
||||
let system = db.system();
|
||||
let files = db.files();
|
||||
|
||||
|
|
|
@ -59,6 +59,15 @@ pub struct PythonVersion {
|
|||
pub minor: u8,
|
||||
}
|
||||
|
||||
impl PythonVersion {
|
||||
pub fn free_threaded_build_available(self) -> bool {
|
||||
self >= PythonVersion {
|
||||
major: 3,
|
||||
minor: 13,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<(&str, &str)> for PythonVersion {
|
||||
type Error = std::num::ParseIntError;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue