From 20f6015a96331575b3b402425f4c42eb91912cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 15 Aug 2009 15:19:01 +0200 Subject: Enhanced the extensions.sh --- extensions.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'extensions.sh') 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 -- cgit v1.2.3