1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

tdb: Fix broken build with --disable-python

With --disable-python, we should not install any python files.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Jul 23 18:50:25 CEST 2015 on sn-devel-104
This commit is contained in:
Martin Schwenke 2015-07-23 09:47:24 +10:00 committed by Amitay Isaacs
parent 5f8bad2fe7
commit 509c37da13

View File

@ -187,12 +187,13 @@ def build(bld):
realname='tdb.so',
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
bld.SAMBA_SCRIPT('_tdb_text.py',
pattern='_tdb_text.py',
installdir='python')
if not bld.env.disable_python:
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
bld.SAMBA_SCRIPT('_tdb_text.py',
pattern='_tdb_text.py',
installdir='python')
bld.INSTALL_FILES('${PYTHONARCHDIR}', '_tdb_text.py')
bld.INSTALL_FILES('${PYTHONARCHDIR}', '_tdb_text.py')
def testonly(ctx):
'''run tdb testsuite'''