Hi, I switched the Debian packaging from Python 2 to 3. Now there is the problem, that the path is not /usr/bin/python (same for python-config), but /u/b/python3{-config}.
So I had to apply the attached diff to get it working with Python 3. I would welcome it if.. 1) Python3 would become the default 2) Dynamic (or with configure switch) chose between python2 or 3 -- /* Mit freundlichem Gruß / With kind regards, Patrick Matthäi GNU/Linux Debian Developer Blog: http://www.linux-dev.org/ E-Mail: pmatth...@debian.org patr...@linux-dev.org */
# Use python3 instead of python in all paths. diff -Naur mlt-6.16.0.orig/src/swig/python/build mlt-6.16.0/src/swig/python/build --- mlt-6.16.0.orig/src/swig/python/build 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/build 2019-09-02 11:43:01.654807123 +0200 @@ -8,12 +8,12 @@ exit 0 fi -path=`which python 2> /dev/null` +path=`which python3 2> /dev/null` if [ $? = 0 ] then # Change this as needed - export PYTHON_INCLUDE=`python -c "import sys;print(\"{}/include/python{}.{}\".format(sys.prefix,*sys.version_info))"` + export PYTHON_INCLUDE=`python3 -c "import sys;print(\"{}/include/python{}.{}\".format(sys.prefix,*sys.version_info))"` [ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1 @@ -26,7 +26,7 @@ ${CXX} -fPIC -D_GNU_SOURCE ${CXXFLAGS} -c -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $? # Create the module - ${CXX} ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python-config --ldflags) -o _mlt.so || exit $? + ${CXX} ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python3-config --ldflags) -o _mlt.so || exit $? else echo Python not installed. exit 1 diff -Naur mlt-6.16.0.orig/src/swig/python/codecs.py mlt-6.16.0/src/swig/python/codecs.py --- mlt-6.16.0.orig/src/swig/python/codecs.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/codecs.py 2019-09-02 11:43:21.046703515 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Import required modules diff -Naur mlt-6.16.0.orig/src/swig/python/getimage.py mlt-6.16.0/src/swig/python/getimage.py --- mlt-6.16.0.orig/src/swig/python/getimage.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/getimage.py 2019-09-02 11:43:34.982629050 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import mlt import sys diff -Naur mlt-6.16.0.orig/src/swig/python/play.py mlt-6.16.0/src/swig/python/play.py --- mlt-6.16.0.orig/src/swig/python/play.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/play.py 2019-09-02 11:43:41.622593566 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Import required modules diff -Naur mlt-6.16.0.orig/src/swig/python/switcher.py mlt-6.16.0/src/swig/python/switcher.py --- mlt-6.16.0.orig/src/swig/python/switcher.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/switcher.py 2019-09-02 11:43:27.782667519 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Import required modules diff -Naur mlt-6.16.0.orig/src/swig/python/test_animation.py mlt-6.16.0/src/swig/python/test_animation.py --- mlt-6.16.0.orig/src/swig/python/test_animation.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/test_animation.py 2019-09-02 11:41:48.599197325 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function diff -Naur mlt-6.16.0.orig/src/swig/python/waveforms.py mlt-6.16.0/src/swig/python/waveforms.py --- mlt-6.16.0.orig/src/swig/python/waveforms.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/waveforms.py 2019-09-02 11:43:49.862549531 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import mlt from PIL import Image diff -Naur mlt-6.16.0.orig/src/swig/python/webvfx_generator.py mlt-6.16.0/src/swig/python/webvfx_generator.py --- mlt-6.16.0.orig/src/swig/python/webvfx_generator.py 2019-09-02 11:06:36.998545328 +0200 +++ mlt-6.16.0/src/swig/python/webvfx_generator.py 2019-09-02 11:43:09.974762672 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # webvfx_generator.py
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel