From: Andrew Bartlett Date: Mon, 17 Aug 2020 23:59:09 +0000 (+1200) Subject: python: Add checks for some more required python packages X-Git-Tag: talloc-2.3.2~759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2420b7c6d2038aca33759ca3a7d41240c5f19bf7;p=thirdparty%2Fsamba.git python: Add checks for some more required python packages This catches the most important packages we require, but this may not be the full list. python-gpg is not listed as we have a big workaround handler for this in samba-tool. Signed-off-by: Andrew Bartlett Reviewed-by: David Mulder --- diff --git a/python/wscript b/python/wscript index b0481560ea5..20ca9f1f862 100644 --- a/python/wscript +++ b/python/wscript @@ -1,10 +1,18 @@ #!/usr/bin/env python import os +from waflib import Options, Errors # work out what python external libraries we need to be successful selftest_pkgs = { 'iso8601': 'python3-iso8601', + 'cryptography': 'python3-cryptography', + 'pyasn1': 'python3-asn1' +} + +ad_dc_pkgs = { + 'markdown': 'python3-markdown', + 'dns': 'python3-dnspython (python3-dns on some systems)' } @@ -65,6 +73,10 @@ def configure(conf): for module, package in selftest_pkgs.items(): find_third_party_module(conf, module, package) + if not Options.options.without_ad_dc: + for module, package in ad_dc_pkgs.items(): + find_third_party_module(conf, module, package) + def build(bld):