From 94e29326f304b9298c703b0a9f0273ca86f415bc Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 24 Dec 2023 13:09:56 +0100 Subject: [PATCH] workaround for packaging --- docker/build_scripts/python-tag-abi-tag.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/build_scripts/python-tag-abi-tag.py b/docker/build_scripts/python-tag-abi-tag.py index c3ce1f11d..aac150041 100644 --- a/docker/build_scripts/python-tag-abi-tag.py +++ b/docker/build_scripts/python-tag-abi-tag.py @@ -1,10 +1,11 @@ # Utility script to print the python tag + the abi tag for a Python # See PEP 425 for exactly what these are, but an example would be: # cp27-cp27mu - +import sysconfig from packaging.tags import sys_tags # first tag is always the more specific tag tag = next(sys_tags()) -print("{0}-{1}".format(tag.interpreter, tag.abi)) +py_nogil = "t" if sysconfig.get_config_vars().get("Py_GIL_DISABLED", 0) else "" +print("{0}-{1}{2}".format(tag.interpreter, tag.abi, py_nogil))