blob: 077ba98c6bf49388149a12750dd90c610675e7e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"
set -e
if ! [ -x "$basedir/setup.py" ]; then
echo "basedir sanity check failed"
exit 1
fi
cd "$basedir"
rm -rf build
rm -f cms_cython
export CFLAGS="$CFLAGS -O3"
python3 ./setup.py build
ln -s build/lib.*-3.*/cms_cython .
|