From 95c2ed458310c2377b90b395c4c8934644645765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 15 Mar 2021 19:31:54 +0000 Subject: [PATCH] Fix python version match. --- ognibuild/resolver/apt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ognibuild/resolver/apt.py b/ognibuild/resolver/apt.py index 83cd3fa..6089850 100644 --- a/ognibuild/resolver/apt.py +++ b/ognibuild/resolver/apt.py @@ -132,7 +132,7 @@ def get_package_for_python_package(apt_mgr, package, python_version, specs=None) def get_package_for_python_module(apt_mgr, module, python_version, specs): - if python_version == "python3": + if python_version == "cpython3": paths = [ posixpath.join( "/usr/lib/python3/dist-packages", @@ -153,7 +153,7 @@ def get_package_for_python_module(apt_mgr, module, python_version, specs): "/usr/lib/python3\\.[0-9]+/", module.replace(".", "/"), "__init__.py" ), ] - elif python_version == "python2": + elif python_version == "cpython2": paths = [ posixpath.join( "/usr/lib/python2\\.[0-9]/dist-packages",