mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
python: wscript_build: Build some modules for Python 3
Update a few wscript_build files to build Python 3-compatible modules for Python 3. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
6fa125e121
commit
fe8bba5f81
@ -24,9 +24,9 @@ bld.SAMBA_SUBSYSTEM('CREDENTIALS_NTLM',
|
||||
source='credentials_ntlm.c',
|
||||
deps='samba-credentials')
|
||||
|
||||
bld.SAMBA_PYTHON('pycredentials',
|
||||
source='pycredentials.c',
|
||||
public_deps='samba-credentials cmdline-credentials pytalloc-util pyparam_util CREDENTIALS_KRB5 CREDENTIALS_SECRETS',
|
||||
realname='samba/credentials.so'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
bld.SAMBA_PYTHON('pycredentials',
|
||||
source='pycredentials.c',
|
||||
public_deps='samba-credentials cmdline-credentials pytalloc-util pyparam_util CREDENTIALS_KRB5 CREDENTIALS_SECRETS',
|
||||
realname='samba/credentials.so'
|
||||
)
|
||||
|
@ -15,12 +15,15 @@ bld.SAMBA_SUBSYSTEM('LIBPYTHON',
|
||||
pyext=True,
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('python_glue',
|
||||
source='pyglue.c',
|
||||
deps='pyparam_util samba-util netif pytalloc-util',
|
||||
realname='samba/_glue.so'
|
||||
)
|
||||
bld.SAMBA_PYTHON('python_glue',
|
||||
source='pyglue.c',
|
||||
deps='%s samba-util netif %s' % (pyparam_util, pytalloc_util),
|
||||
realname='samba/_glue.so'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
# install out various python scripts for use by make test
|
||||
|
@ -35,24 +35,27 @@ bld.SAMBA_SUBSYSTEM('SECRETS',
|
||||
deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap'
|
||||
)
|
||||
|
||||
for env in bld.gen_python_environments():
|
||||
pytalloc_util = bld.pyembed_libname('pytalloc-util')
|
||||
pyparam_util = bld.pyembed_libname('pyparam_util')
|
||||
|
||||
bld.SAMBA_PYTHON('pyparam',
|
||||
source='pyparam.c',
|
||||
deps='samba-hostconfig pytalloc-util',
|
||||
realname='samba/param.so'
|
||||
)
|
||||
bld.SAMBA_PYTHON('pyparam',
|
||||
source='pyparam.c',
|
||||
deps='samba-hostconfig %s' % pytalloc_util,
|
||||
realname='samba/param.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_SUBSYSTEM(pyparam_util,
|
||||
source='pyparam_util.c',
|
||||
deps='LIBPYTHON samba-hostconfig %s' % pytalloc_util,
|
||||
pyext=True
|
||||
)
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('param_options',
|
||||
source='loadparm.c',
|
||||
deps='samba-hostconfig')
|
||||
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('pyparam_util',
|
||||
source='pyparam_util.c',
|
||||
deps='LIBPYTHON samba-hostconfig pytalloc-util',
|
||||
pyext=True,
|
||||
)
|
||||
|
||||
bld.SAMBA_LIBRARY('shares',
|
||||
source=[],
|
||||
deps='share',
|
||||
|
Loading…
x
Reference in New Issue
Block a user