summaryrefslogtreecommitdiff
path: root/extensions.sh
blob: eb44d92e762579f7fa92b68fbd67f11dd99a4ea8 (plain)
1
2
3
4
5
6
7
8
9
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