From: Paul Brossier Date: Sat, 21 Jan 2017 19:53:09 +0000 (+0100) Subject: python/lib/moresetuptools.py: use system aubio only when version matches exactly... X-Git-Tag: 0.4.5~104 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=227aa1c1e3817780871347f6f3096beecc54d8f7;p=aubio.git python/lib/moresetuptools.py: use system aubio only when version matches exactly (closes: #84) --- diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py index 583a6252..dd2a7525 100644 --- a/python/lib/moresetuptools.py +++ b/python/lib/moresetuptools.py @@ -156,9 +156,12 @@ def add_external_deps(ext, usedouble = False): def add_system_aubio(ext): # use pkg-config to find aubio's location - add_packages(['aubio'], ext) + aubio_version = get_aubio_version() + add_packages(['aubio = ' + aubio_version], ext) if 'aubio' not in ext.libraries: - print("Error: libaubio not found") + print("Info: aubio " + aubio_version + " was not found by pkg-config") + else: + print("Info: using system aubio " + aubio_version + " found in " + ' '.join(ext.library_dirs)) class CleanGenerated(distutils.command.clean.clean): def run(self):