setup.py: only link against frameworks on darwin
authorPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 20:05:24 +0000 (15:05 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 1 Mar 2013 20:05:24 +0000 (15:05 -0500)
python/setup.py

index 125853a71de6081863138fe775c036bdb070de7d..55a6f8827e5a198be19fe5c39c9b0831acf05ee2 100755 (executable)
@@ -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',