build_osx: add sample script to build and run tests on osx
authorPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 01:43:01 +0000 (19:43 -0600)
committerPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 01:43:01 +0000 (19:43 -0600)
interfaces/python/build_osx [new file with mode: 0755]

diff --git a/interfaces/python/build_osx b/interfaces/python/build_osx
new file mode 100755 (executable)
index 0000000..572270a
--- /dev/null
@@ -0,0 +1,8 @@
+#! /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/
+export LDFLAGS=-L../../build/src/
+python setup.py clean build
+export PYTHONPATH=./build/lib.macosx-10.6-intel-2.7:$PYTHONPATH
+export DYLD_LIBRARY_PATH=../../build/src
+./run_all_tests --verbose