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

github at samba.org github at samba.org
Mon Nov 27 03:39:31 UTC 2017


There is an updated pull request by b-a-t against master on the Samba Samba Github repository

https://github.com/b-a-t/samba python3-freebsd
https://github.com/samba-team/samba/pull/110

Try to extrapolate PYTHON_SO_ABI_FLAG  from the SOABI Python config variable
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.

A patch file from https://github.com/samba-team/samba/pull/110.patch is attached
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: github-pr-python3-freebsd-110.patch
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171127/1e482738/github-pr-python3-freebsd-110.patch>


More information about the samba-technical mailing list