5 ( cd `dirname $0`; rm -f *.cxx *.so mlt.i ../.python mlt.py? )
9 path=`which python 2> /dev/null`
13 # Change this as needed
14 export PYTHON_INCLUDE=`python -c "import sys;print \"%s/include/python%d.%d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"`
16 [ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1
21 swig -c++ -I../../mlt++ -I../.. -python mlt.i || exit $?
24 g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
27 gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o _mlt.so || exit $?
29 echo Python not installed.