aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-24 09:55:12 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-24 10:16:50 +0200
commit05658dc1bc61ae5a9b7310277998e7e0dcea3165 (patch)
tree5c58487f5a06e09c2f963f9b4ffe9b3555e571a9
parent9f9671dbb68e612e4ea9e12921ba05c0f11955bd (diff)
downloadlibgpiod-05658dc1bc61ae5a9b7310277998e7e0dcea3165.tar.gz
bindings: python: fix the distutils import
The presence of _distutils in setuptools is an implementation detail. If we want anything from the distutils package, we should import it directly. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--bindings/python/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/tests/__init__.py b/bindings/python/tests/__init__.py
index ecb96afc..02f4e8d5 100644
--- a/bindings/python/tests/__init__.py
+++ b/bindings/python/tests/__init__.py
@@ -4,7 +4,7 @@
import os
import unittest
-from setuptools._distutils.version import LooseVersion
+from distutils.version import LooseVersion
required_kernel_version = LooseVersion("5.19.0")
current_version = LooseVersion(os.uname().release.split("-")[0])