mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
samba_external: Simplify script to find missing external packages; include subunit and testtools as well.
This commit is contained in:
parent
31094b0e8c
commit
e4af3afd7a
@ -2,11 +2,17 @@
|
||||
|
||||
# work out what python external libraries we need to install
|
||||
|
||||
external_libs = {
|
||||
"dns.resolver": "dnspython",
|
||||
"subunit": "subunit",
|
||||
"testtools": "testtools"}
|
||||
|
||||
list = []
|
||||
|
||||
try:
|
||||
import dns.resolver
|
||||
except:
|
||||
list.append("dnspython")
|
||||
for module, package in external_libs.iteritems():
|
||||
try:
|
||||
__import__(module)
|
||||
except ImportError:
|
||||
list.append(package)
|
||||
|
||||
print ' '.join(list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user