Skip to content

Commit

Permalink
fix(pip): Only pass major and minor version to python-inspector
Browse files Browse the repository at this point in the history
`python-inspector`'s "--python-version" option does not support
patch-level versions.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Mar 1, 2024
1 parent dfd784e commit 8d33760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/package-managers/python/src/main/kotlin/Pip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Pip(
PythonInspector.inspect(
workingDir = workingDir,
definitionFile = definitionFile,
pythonVersion = pythonVersion.replace(".", ""),
pythonVersion = pythonVersion.split('.', limit = 3).take(2).joinToString(""),
operatingSystem = operatingSystem
)
} finally {
Expand Down

0 comments on commit 8d33760

Please sign in to comment.