summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba_external/missing.py
blob: d3dd2b9290f46744f7c7f4b0d3b327db4ac6ad6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python

# work out what python external libraries we need to install
external_libs = {
    "dns.resolver": "dnspython/dns", 
    "subunit": "subunit/python/subunit",
    "testtools": "testtools/testtools"}

list = []

for module, package in external_libs.iteritems():
    try:
        __import__(module)
    except ImportError:
        list.append(package)

print ' '.join(list)