mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
Fix setuptools version detection in buildpath.py
libraries/libapparmor/swig/python/test/buildpath.py: The changes introduced incc7f549665
targetted a wrong setuptools version (61.2). The change in build directory naming has been introduced with 62.1 (1c23f5e1e4
). (cherry picked from commit fda390983f77c2d218690522eba35aecf20aa332)
This commit is contained in:
parent
63751d20e2
commit
d415e48646
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user