samba_external: Simplify script to find missing external packages; include subunit...
[Samba/eduardoll.git] / source4 / scripting / python / samba_external / missing.py
blob082afd839715cdca97e2ce1d9adc68ea76a8546b
1 #!/usr/bin/python
3 # work out what python external libraries we need to install
5 external_libs = {
6 "dns.resolver": "dnspython",
7 "subunit": "subunit",
8 "testtools": "testtools"}
10 list = []
12 for module, package in external_libs.iteritems():
13 try:
14 __import__(module)
15 except ImportError:
16 list.append(package)
18 print ' '.join(list)