diff --git a/libraries/libapparmor/swig/python/test/buildpath.py b/libraries/libapparmor/swig/python/test/buildpath.py index a9c4728a2..63d70f794 100644 --- a/libraries/libapparmor/swig/python/test/buildpath.py +++ b/libraries/libapparmor/swig/python/test/buildpath.py @@ -7,7 +7,7 @@ import sysconfig import setuptools -if tuple(map(int, setuptools.__version__.split("."))) >= (62, 1): +if tuple(map(int, setuptools.__version__.split(".")[:2])) >= (62, 1): identifier = sys.implementation.cache_tag else: identifier = "%d.%d" % sys.version_info[:2]