2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-05 16:55:32 +00:00

use new build_platlib path with setuptools >= 61.2

(cherry picked from commit 47d68dac0f)
This commit is contained in:
Ben Greiner
2022-07-16 00:42:14 +02:00
committed by Christian Boltz
parent d6441c9da8
commit cc7f549665
4 changed files with 15 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
# the build path has changed in setuptools 61.2
import sys
import sysconfig
import setuptools
if tuple(map(int,setuptools.__version__.split("."))) >= (61, 2):
identifier = sys.implementation.cache_tag
else:
identifier = "%d.%d" % sys.version_info[:2]
print("lib.%s-%s" % (sysconfig.get_platform(), identifier))