projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d37c0
)
python/lib/moresetuptools.py: also catch WindowsError and other exceptions
author
Paul Brossier
<piem@piem.org>
Sun, 15 May 2016 14:51:59 +0000
(16:51 +0200)
committer
Paul Brossier
<piem@piem.org>
Sun, 15 May 2016 21:26:56 +0000
(23:26 +0200)
python/lib/moresetuptools.py
patch
|
blob
|
history
diff --git
a/python/lib/moresetuptools.py
b/python/lib/moresetuptools.py
index
9d1add1
..
3ff5ebd
100644
(file)
--- a/
python/lib/moresetuptools.py
+++ b/
python/lib/moresetuptools.py
@@
-21,11
+21,11
@@
def add_packages(packages, ext=None, **kw):
}
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: