问题
PEP 425 explains the compatibility tag format for built python distributions, but does not explain the ABI tag in full detail.
The ABI tag can end with a combination of the letters 'd', 'm', and 'u'. As an example, it is explained within the PEP that the 'd' means an ABI with debugging, and this answer explains that the 'u' denotes an interpreter compiled with --enable-unicode=ucs4
, but I could not find the meaning of the 'm' anywhere.
回答1:
Per PEP 3149, m
indicates that the ABI in question is using the pymalloc allocator:
Python implementations MAY include additional flags in the file name tag as appropriate. For example, on POSIX systems these flags will also contribute to the file name:
--with-pydebug
(flag:d
)--with-pymalloc
(flag:m
)--with-wide-unicode
(flag:u
)
来源:https://stackoverflow.com/questions/54097033/what-does-the-m-in-a-python-abi-tag-mean