Rather, rely just on waf's pyext feature. This fixes a warning from dh_python2.
cflags=cflags,
local_include=local_include,
vars=vars,
- pyembed=True,
+ pyext=True,
enabled=enabled)
return
local_include=local_include,
vars=vars,
link_name=link_name,
- pyembed=True,
+ pyext=True,
target_type='PYTHON',
install_path='${PYTHONARCHDIR}',
enabled=enabled)
features = 'cc cshlib symlink_lib install_lib'
if target_type == 'PYTHON':
features += ' pyext'
- if pyext or pyembed:
- # this is quite strange. we should add pyext feature for pyext
- # but that breaks the build. This may be a bug in the waf python tool
+ allow_undefined_symbols = True
+ if pyembed:
features += ' pyembed'
if abi_directory:
deps='LIBPYTHON pytalloc-util pyrpc_util',
grouping_library=True,
private_library=True,
- pyext=True)
+ pyembed=True)
bld.SAMBA_SUBSYSTEM('LIBPYTHON',
source='modules.c',