From 227aa1c1e3817780871347f6f3096beecc54d8f7 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 21 Jan 2017 20:53:09 +0100 Subject: [PATCH] python/lib/moresetuptools.py: use system aubio only when version matches exactly (closes: #84) --- python/lib/moresetuptools.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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): -- 2.11.0