interfaces/python/build_osx: update and build fat binary
authorPaul Brossier <piem@piem.org>
Sun, 15 Jul 2012 21:10:48 +0000 (15:10 -0600)
committerPaul Brossier <piem@piem.org>
Sun, 15 Jul 2012 21:10:48 +0000 (15:10 -0600)
interfaces/python/build_osx

index 572270a..305bb39 100755 (executable)
@@ -1,6 +1,9 @@
 #! /bin/sh
 
-export CFLAGS=-I/Users/piem/Library/Python/2.7/site-packages/numpy-1.8.0.dev_436a28f_20120710-py2.7-macosx-10.7-x86_64.egg/numpy/core/include/
+set -e
+set -x
+
+export CFLAGS="-I/Users/piem/Library/Python/2.7/site-packages/numpy-1.8.0.dev_436a28f_20120710-py2.7-macosx-10.7-x86_64.egg/numpy/core/include/ -arch i386 -arch x86_64"
 export LDFLAGS=-L../../build/src/
 python setup.py clean build
 export PYTHONPATH=./build/lib.macosx-10.6-intel-2.7:$PYTHONPATH