123456789101112131415161718192021 |
- #!/bin/sh
- # -*- coding: utf-8 -*-
- basedir="$(realpath "$0" | xargs dirname)"
- set -e
- if ! [ -x "$basedir/setup.py" ]; then
- echo "basedir sanity check failed"
- exit 1
- fi
- cd "$basedir"
- rm -f cms_cython
- export CFLAGS="$CFLAGS -O3"
- python3 ./setup.py build
- ln -s build/lib.*-3*/cms_cython .
- # vim: ts=4 sw=4 expandtab
|