d3dd2b9290f46744f7c7f4b0d3b327db4ac6ad6e
[samba.git] / source4 / scripting / python / samba_external / missing.py
1 #!/usr/bin/python
2
3 # work out what python external libraries we need to install
4 external_libs = {
5     "dns.resolver": "dnspython/dns", 
6     "subunit": "subunit/python/subunit",
7     "testtools": "testtools/testtools"}
8
9 list = []
10
11 for module, package in external_libs.iteritems():
12     try:
13         __import__(module)
14     except ImportError:
15         list.append(package)
16
17 print ' '.join(list)