forked from pypa/manylinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |