aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mlt/python3.patch
blob: ac32c9011d586504e3a0b8f067e6bbf4418c7e84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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