diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 15:19:01 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-15 15:19:01 +0200 |
commit | 20f6015a96331575b3b402425f4c42eb91912cf1 (patch) | |
tree | 374f411211d8ebb85b71a28a3ce8b1ce38365e9e | |
parent | e65b90763927ec9133f9b9c30e00b0a70b13b14b (diff) | |
download | portato-20f6015a96331575b3b402425f4c42eb91912cf1.tar.gz portato-20f6015a96331575b3b402425f4c42eb91912cf1.tar.bz2 portato-20f6015a96331575b3b402425f4c42eb91912cf1.zip |
Enhanced the extensions.sh
Diffstat (limited to '')
-rwxr-xr-x | extensions.sh | 11 |
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 |