From e21d95b8ad19335fe5e648b0cfa4068cdfef160b Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Mon, 29 Apr 2024 17:03:07 +0200 Subject: [PATCH] Fix an issue where python version may become 3 --- komodo/pypi_dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komodo/pypi_dependencies.py b/komodo/pypi_dependencies.py index bf2d9ef4..e9f22c7c 100644 --- a/komodo/pypi_dependencies.py +++ b/komodo/pypi_dependencies.py @@ -48,7 +48,7 @@ def __init__( ) -> None: self.python_version = python_version environment["python_full_version"] = python_version - environment["python_version"] = python_version[: python_version.rindex(".")] + environment["python_version"] = ".".join(python_version.split(".")[0:2]) self._satisfied_requirements = set() self._failed_requirements = set() self._used_packages = set()