ref: 1772630a30b0a87da3cc5d5b77b38d3d119fb031
parent: b1d37c0443da74f2ae5bfa21c6e3913ddc29b779
author: Paul Brossier <piem@piem.org>
date: Sun May 15 12:51:59 EDT 2016
python/lib/moresetuptools.py: also catch WindowsError and other exceptions
--- a/python/lib/moresetuptools.py
+++ b/python/lib/moresetuptools.py
@@ -21,11 +21,11 @@
}
for package in packages:
+ cmd = ['pkg-config', '--libs', '--cflags', package]
try:
- cmd = ['pkg-config', '--libs', '--cflags', package]
tokens = subprocess.check_output(cmd)
- except subprocess.CalledProcessError:
- print("{:s} could not be found".format(package))
+ except Exception as e:
+ print("Running \"{:s}\" failed: {:s}".format(' '.join(cmd), repr(e)))
continue
tokens = tokens.decode('utf8').split()
for token in tokens: