From: Paul Brossier Date: Fri, 1 Mar 2013 20:05:24 +0000 (-0500) Subject: setup.py: only link against frameworks on darwin X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=14fb15f310bd10207b240f781053cee9c5b8c430;p=aubio.git setup.py: only link against frameworks on darwin --- diff --git a/python/setup.py b/python/setup.py index 125853a7..55a6f882 100755 --- a/python/setup.py +++ b/python/setup.py @@ -2,6 +2,7 @@ from distutils.core import setup, Extension from generator import generate_object_files +import sys import os.path import numpy @@ -30,9 +31,11 @@ aubio_extension = Extension("aubio._aubio", ] + generate_object_files(), include_dirs = include_dirs + [ numpy.get_include() ], library_dirs = library_dirs, - extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox'], libraries=['aubio']) +if sys.platform.startswith('darwin'): + aubio_extension.extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox'] + classifiers = [ 'Development Status :: 4 - Beta', 'Environment :: Console',