From d00a44d505aaf7c42db98d18153599abcff34004 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Mon, 22 Aug 2016 08:53:06 -0400 Subject: [PATCH 1/2] MAINT: Add script to clean out compiled files. --- etc/rebuild-cython.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 etc/rebuild-cython.sh diff --git a/etc/rebuild-cython.sh b/etc/rebuild-cython.sh new file mode 100755 index 00000000..3cc531a3 --- /dev/null +++ b/etc/rebuild-cython.sh @@ -0,0 +1,3 @@ +#!/bin/bash +find zipline tests -name "*.so" | xargs rm || true +python setup.py build_ext --inplace From 1295b862488cee484a62a0fc5280db166ec6604b Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Fri, 2 Sep 2016 12:56:36 -0400 Subject: [PATCH 2/2] DEV: Find .c and .so files with regex. --- etc/rebuild-cython.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rebuild-cython.sh b/etc/rebuild-cython.sh index 3cc531a3..8be2da78 100755 --- a/etc/rebuild-cython.sh +++ b/etc/rebuild-cython.sh @@ -1,3 +1,3 @@ #!/bin/bash -find zipline tests -name "*.so" | xargs rm || true +find zipline tests -regex '.*\.\(c\|so\)' -exec rm {} + python setup.py build_ext --inplace