build-pyportmidi 428 B

1234567891011
  1. #!/bin/bash
  2. PYTHON_VER=$(python -c "from sys import version; print (version[:3])")
  3. PYTHON_INC=$(python -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")
  4. pushd pm_python/pyportmidi
  5. ${CC} ${CFLAGS} -pthread -fPIC -c -o _pyportmidi.o -I../../pm_common -I../../porttime -I$PYTHON_INC _pyportmidi.c
  6. ${CC} -shared -o _pyportmidi.so _pyportmidi.o -lportmidi -lpython$PYTHON_VER -L../../build/Release
  7. popd