summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextensions.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/extensions.sh b/extensions.sh
index 4e17533..eb44d92 100755
--- a/extensions.sh
+++ b/extensions.sh
@@ -1,5 +1,10 @@
#!/bin/sh
-python setup.py build_ext -i
-# remove the "build" directory
-python setup.py clean -a
+cflags=$(python -c "from portato.backend import system; print system.get_global_settings('CFLAGS')")
+
+find -name "*.so" -print0 | xargs -0 rm -f
+find -name "*.c" -print0 | xargs -0 rm -f
+
+CFLAGS=$cflags python setup.py build_ext -i
+
+rm -rf build