aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mlt/python3.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-07-15 19:54:20 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-07-15 15:54:50 -0300
commit59cfc8d857acf65d61852747e423c275a95caea0 (patch)
tree004b3925c581a14f037ebfe5a1098b8dcf40bc7b /testing/mlt/python3.patch
parent3263e1acf012a3d2b4101c99db830ce63ad9a14d (diff)
downloadaports-59cfc8d857acf65d61852747e423c275a95caea0.tar.bz2
aports-59cfc8d857acf65d61852747e423c275a95caea0.tar.xz
testing/mlt: modernize and add py3 subpackage
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
+