aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mlt/python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mlt/python3.patch')
-rw-r--r--testing/mlt/python3.patch19
1 files changed, 19 insertions, 0 deletions
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
+