summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-08-18 11:59:09 +1200
committerAndrew Bartlett <abartlet@samba.org>2020-08-20 22:49:26 +0000
commit2420b7c6d2038aca33759ca3a7d41240c5f19bf7 (patch)
treefa416a85050dc760125c8e376678f4648a2e6595 /python
parent091e11260d66a6a038aee08f2fed4fc1711aa03b (diff)
downloadsamba-2420b7c6d2038aca33759ca3a7d41240c5f19bf7.tar.gz
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 <abartlet@samba.org> Reviewed-by: David Mulder <dmulder@suse.com>
Diffstat (limited to 'python')
-rw-r--r--python/wscript12
1 files changed, 12 insertions, 0 deletions
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):