2022-07-19 21:47:02 +02:00
|
|
|
#!/usr/bin/python3
|
2022-08-02 14:17:27 +02:00
|
|
|
# the build path has changed in setuptools 62.1:
|
|
|
|
# https://github.com/pypa/setuptools/commit/1c23f5e1e4b18b50081cbabb2dea22bf345f5894
|
2022-07-16 00:42:14 +02:00
|
|
|
import sys
|
|
|
|
import sysconfig
|
2022-08-07 20:32:07 -04:00
|
|
|
|
2022-07-16 00:42:14 +02:00
|
|
|
import setuptools
|
2022-08-02 14:17:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
if tuple(map(int, setuptools.__version__.split("."))) >= (62, 1):
|
2022-07-16 00:42:14 +02:00
|
|
|
identifier = sys.implementation.cache_tag
|
|
|
|
else:
|
|
|
|
identifier = "%d.%d" % sys.version_info[:2]
|
|
|
|
print("lib.%s-%s" % (sysconfig.get_platform(), identifier))
|