[red-knot] Add support for --system-site-packages virtual environments (#12759)

This commit is contained in:
Alex Waygood 2024-08-09 21:02:16 +01:00 committed by GitHub
parent 83db48d316
commit 37b9bac403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 770 additions and 199 deletions

View file

@ -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;