mirror of
https://github.com/samba-team/samba.git
synced 2025-04-29 14:50:26 +03:00
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
18 lines
394 B
Python
Executable File
18 lines
394 B
Python
Executable File
#!/usr/bin/env 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)
|