build.sh 326 B

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