repo.or.cz
/
Samba
/
eduardoll.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
samba_external: Simplify script to find missing external packages; include subunit...
[Samba/eduardoll.git]
/
source4
/
scripting
/
python
/
samba_external
/
missing.py
blob
082afd839715cdca97e2ce1d9adc68ea76a8546b
1
#!/usr/bin/python
2
3
# work out what python external libraries we need to install
4
5
external_libs
= {
6
"dns.resolver"
:
"dnspython"
,
7
"subunit"
:
"subunit"
,
8
"testtools"
:
"testtools"
}
9
10
list
= []
11
12
for
module
,
package
in
external_libs
.
iteritems
():
13
try
:
14
__import__
(
module
)
15
except
ImportError
:
16
list
.
append
(
package
)
17
18
print
' '
.
join
(
list
)