summaryrefslogtreecommitdiff
path: root/extensions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extensions.sh')
-rwxr-xr-xextensions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions.sh b/extensions.sh
new file mode 100755
index 0000000..eb44d92
--- /dev/null
+++ b/extensions.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+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