From: Andrew Bartlett Date: Mon, 4 Mar 2019 08:48:41 +0000 (+1300) Subject: build: Remove distinct .py3 ABI files X-Git-Tag: talloc-2.2.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3ba5998eec5cf29fcd33f5f902f8cf524aa6de;p=thirdparty%2Fsamba.git build: Remove distinct .py3 ABI files The only difference between the two built libraries is pytalloc_CObject_FromTallocPtr() which is deprecated. Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 2809ba8038d..cd3e9d3e7a8 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -251,10 +251,10 @@ def SAMBA_LIBRARY(bld, libname, source, features += ' abi_check' if pyembed and bld.env['PYTHON_SO_ABI_FLAG']: - # For ABI checking, we don't care about the exact Python version. - # Replace the Python ABI tag (e.g. ".cpython-35m") by a generic ".py3" + # For ABI checking, we don't care about the Python version. + # Remove the Python ABI tag (e.g. ".cpython-35m") abi_flag = bld.env['PYTHON_SO_ABI_FLAG'] - replacement = '.py%s' % bld.env['PYTHON_VERSION'].split('.')[0] + replacement = '' version_libname = libname.replace(abi_flag, replacement) else: version_libname = libname