Changeset 1772630 for python/lib


Ignore:
Timestamp:
May 15, 2016, 11:26:56 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
999b1823
Parents:
b1d37c0
git-author:
Paul Brossier <piem@piem.org> (05/15/16 16:51:59)
git-committer:
Paul Brossier <piem@piem.org> (05/15/16 23:26:56)
Message:

python/lib/moresetuptools.py: also catch WindowsError? and other exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/moresetuptools.py

    rb1d37c0 r1772630  
    2222
    2323    for package in packages:
     24        cmd = ['pkg-config', '--libs', '--cflags', package]
    2425        try:
    25             cmd = ['pkg-config', '--libs', '--cflags', package]
    2626            tokens = subprocess.check_output(cmd)
    27         except subprocess.CalledProcessError:
    28             print("{:s} could not be found".format(package))
     27        except Exception as e:
     28            print("Running \"{:s}\" failed: {:s}".format(' '.join(cmd), repr(e)))
    2929            continue
    3030        tokens = tokens.decode('utf8').split()
Note: See TracChangeset for help on using the changeset viewer.