3 path=`which python 2> /dev/null`
7 # Change this as needed
8 export PYTHON_INCLUDE=`python -c "import sys;print \"%s/include/python%d.%d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"`
10 [ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1
15 swig -c++ -I/usr/local/include/mlt++ `mlt-config --cflags` -python mltpp.i || exit $?
18 g++ -D_GNU_SOURCE -c -rdynamic -pthread `mlt-config --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
21 ld -shared mltpp_wrap.o -lmlt++ -o _mltpp.so || exit $?
23 echo Python not installed.