[red-knot] Add support for --system-site-packages virtual environments (#12759)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user