ref: 14fb15f310bd10207b240f781053cee9c5b8c430
parent: 13ceb9dcf095a1dfb6bc693830ff27ab74cd27e2
author: Paul Brossier <piem@piem.org>
date: Fri Mar 1 10:05:24 EST 2013
setup.py: only link against frameworks on darwin
--- 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,8 +31,10 @@
] + 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',