Skip to content

Commit

Permalink
workaround for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Dec 29, 2023
1 parent 3122068 commit 94e2932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/build_scripts/python-tag-abi-tag.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 94e2932

Please sign in to comment.