1
0
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:
Jelmer Vernooij 2010-03-31 03:15:24 +02:00
parent 31094b0e8c
commit e4af3afd7a

View File

@ -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)