summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2017-01-27 14:37:39 -0500
committerAndrew Bartlett <abartlet@samba.org>2017-03-10 07:31:12 +0100
commitb45ff0bcf9ed4a9e393ab7bcb2ac6657dd1f5dfe (patch)
tree2b71f973bdab22bcd20ac54f377feaa688f7a948 /lib/tevent
parentce956be075a626f68b13df772a919c883185d858 (diff)
downloadsamba-b45ff0bcf9ed4a9e393ab7bcb2ac6657dd1f5dfe.tar.gz
waf: disable-python - align tevent wscript
Drop the configure option for --disable-python as it is now global in wafsamba. If samba is set to use a system copy of tevent, and tevent wasn't built with python support, then the system pytevent will not be found. If samba is being built without python support then pytevent is not needed, so do not bother to try and find it. Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/wscript9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript
index 580ca4d9964..0c02f704ddb 100644
--- a/lib/tevent/wscript
+++ b/lib/tevent/wscript
@@ -22,10 +22,6 @@ def set_options(opt):
opt.PRIVATE_EXTENSION_DEFAULT('tevent', noextension='tevent')
opt.RECURSE('lib/replace')
opt.RECURSE('lib/talloc')
- if opt.IN_LAUNCH_DIR():
- opt.add_option('--disable-python',
- help=("disable the pytevent module"),
- action="store_true", dest='disable_python', default=False)
def configure(conf):
@@ -38,7 +34,8 @@ def configure(conf):
if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION,
onlyif='talloc', implied_deps='replace talloc'):
conf.define('USING_SYSTEM_TEVENT', 1)
- if conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
+ if not conf.env.disable_python and \
+ conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
conf.define('USING_SYSTEM_PYTEVENT', 1)
if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
@@ -61,8 +58,6 @@ def configure(conf):
if not conf.CONFIG_SET('USING_SYSTEM_TEVENT'):
conf.DEFINE('TEVENT_NUM_SIGNALS', tevent_num_signals)
- conf.env.disable_python = getattr(Options.options, 'disable_python', False)
-
if not conf.env.disable_python:
# also disable if we don't have the python libs installed
conf.find_program('python', var='PYTHON')