[PR PATCH] [Closed]: Try to extrapolate PYTHON_SO_ABI_FLAG from the SOABI Python config variable

github at samba.org github at samba.org
Thu Dec 13 08:53:33 UTC 2018


There's a closed pull request on the Samba Samba Github repository

Try to extrapolate PYTHON_SO_ABI_FLAG  from the SOABI Python config variable
https://github.com/samba-team/samba/pull/110
Description: Python3 configuration handling (ab)uses "SO" configuration variable to
extract SO ABI extension. It happens to work on Linux as this variable
contains not only binary module extension, but also ABI part, like in
.cpython-34m.so or in .cpython-35m-x86_64-linux-gnu.so. In FreeBSD this
variable contains only .so. The SO ABI extension in fact, is stored in
the "SOABI" variable and should be taken from there directly, without
relying on the content of SO variable. For Linux it contains
"cpython-34m" and "cpython-35m-x86_64-linux-gnu" respectivelly, for
FreeBSD it is "cpython-36m".

We are trying to set PYTHON_SO_ABI_FLAG based on the value of SOABI and
only if it's not available - fall back to the old method of guessing it
from the SO configuration variable.


More information about the samba-technical mailing list