From 0fbf7b428bde7b6e4d7dd50f2cca63a3ee8238cb Mon Sep 17 00:00:00 2001 From: Paul Sutherland Date: Wed, 26 Oct 2016 15:08:36 -0800 Subject: [PATCH] DEV delete old *.c and *.so files with rebuild-cython.sh for Darwin/OSX (#1560) --- etc/rebuild-cython.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/rebuild-cython.sh b/etc/rebuild-cython.sh index 8be2da78..49ffa1a7 100755 --- a/etc/rebuild-cython.sh +++ b/etc/rebuild-cython.sh @@ -1,3 +1,8 @@ #!/bin/bash -find zipline tests -regex '.*\.\(c\|so\)' -exec rm {} + + +if [[ "$OSTYPE" == "darwin"* ]]; then + find -E zipline tests -regex '.*\.(c|so)' -exec rm {} + +else + find zipline tests -regex '.*\.\(c\|so\)' -exec rm {} + +fi python setup.py build_ext --inplace