Use full Python version for installed version (#1033)
## Summary `interpreter.version()` returns the `python_full_version`, but the marker variant uses `python_version` instead of `python_full_version` -- so it's omitting the patch.
This commit is contained in:
@@ -16,7 +16,7 @@ impl PythonRequirement {
|
||||
pub fn new(interpreter: &Interpreter, markers: &MarkerEnvironment) -> Self {
|
||||
Self {
|
||||
installed: interpreter.version().clone(),
|
||||
target: markers.python_version.version.clone(),
|
||||
target: markers.python_full_version.version.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user