mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
build: Remove Python2 handling in SAMBA_CHECK_PYTHON_HEADERS()
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
3e48825507
commit
40511af091
@ -58,11 +58,8 @@ def SAMBA_CHECK_PYTHON_HEADERS(conf):
|
||||
def _check_python_headers(conf):
|
||||
conf.check_python_headers()
|
||||
|
||||
if conf.env['PYTHON_VERSION'] > '3':
|
||||
abi_pattern = os.path.splitext(conf.env['pyext_PATTERN'])[0]
|
||||
conf.env['PYTHON_SO_ABI_FLAG'] = abi_pattern % ''
|
||||
else:
|
||||
conf.env['PYTHON_SO_ABI_FLAG'] = ''
|
||||
abi_pattern = os.path.splitext(conf.env['pyext_PATTERN'])[0]
|
||||
conf.env['PYTHON_SO_ABI_FLAG'] = abi_pattern % ''
|
||||
conf.env['PYTHON_LIBNAME_SO_ABI_FLAG'] = (
|
||||
conf.env['PYTHON_SO_ABI_FLAG'].replace('_', '-'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user