If we don't have permission to execute the libtool binary, we'd
just throw here which is wrong. Fix this by catching all
exceptions.
try:
subprocess.check_call(['libtool', '--version'],
stdout=open(os.devnull))
try:
subprocess.check_call(['libtool', '--version'],
stdout=open(os.devnull))
- except subprocess.CalledProcessError, e:
# If libtool's not installed, assume we don't need it
return None
# If libtool's not installed, assume we don't need it
return None