From 59cfc8d857acf65d61852747e423c275a95caea0 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Mon, 15 Jul 2019 19:54:20 +0200 Subject: testing/mlt: modernize and add py3 subpackage --- testing/mlt/python3.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testing/mlt/python3.patch (limited to 'testing/mlt/python3.patch') diff --git a/testing/mlt/python3.patch b/testing/mlt/python3.patch new file mode 100644 index 0000000000..ac32c9011d --- /dev/null +++ b/testing/mlt/python3.patch @@ -0,0 +1,19 @@ +diff --git a/src/swig/python/build b/src/swig/python/build +index db31e16..4eb69e2 100755 +--- a/src/swig/python/build ++++ b/src/swig/python/build +@@ -8,12 +8,12 @@ then + 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{}.{}m\".format(sys.prefix,*sys.version_info))"` + + [ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1 + -- cgit v1.2.3