diff --git a/libraries/libapparmor/swig/python/test/buildpath.py b/libraries/libapparmor/swig/python/test/buildpath.py index 6b805c1be..94b63c2e4 100644 --- a/libraries/libapparmor/swig/python/test/buildpath.py +++ b/libraries/libapparmor/swig/python/test/buildpath.py @@ -1,9 +1,12 @@ #!/usr/bin/python3 -# the build path has changed in setuptools 61.2 +# the build path has changed in setuptools 62.1: +# https://github.com/pypa/setuptools/commit/1c23f5e1e4b18b50081cbabb2dea22bf345f5894 import sys import sysconfig import setuptools -if tuple(map(int,setuptools.__version__.split("."))) >= (61, 2): + + +if tuple(map(int, setuptools.__version__.split("."))) >= (62, 1): identifier = sys.implementation.cache_tag else: identifier = "%d.%d" % sys.version_info[:2]