summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 16:22:01 +0200
committerwm4 <wm4@nowhere>2012-09-29 16:22:01 +0200
commit6fb0e6bf1c8312555cc8e29ef3513e0dc5a848fe (patch)
tree84512234b746775ecd8b725c3ecaf38a8d1ce7d4
parent0ee09dcdbecc115531ee4fbfa534bcb654b5cbf6 (diff)
downloadmpv-6fb0e6bf1c8312555cc8e29ef3513e0dc5a848fe.tar.bz2
mpv-6fb0e6bf1c8312555cc8e29ef3513e0dc5a848fe.tar.xz
build: use "python" instead of "python3" as interpreter name
This works regardless whether "python" starts a Python 2 or Python 3 interpreter.
-rwxr-xr-xTOOLS/file2string.py2
-rwxr-xr-xTOOLS/matroska.py2
-rwxr-xr-xTOOLS/vdpau_functions.py2
-rwxr-xr-xconfigure4
4 files changed, 5 insertions, 5 deletions
diff --git a/TOOLS/file2string.py b/TOOLS/file2string.py
index 35c89cb731..6cdd1a72ae 100755
--- a/TOOLS/file2string.py
+++ b/TOOLS/file2string.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# Convert the contents of a file into a C string constant.
# Note that the compiler will implicitly add an extra 0 byte at the end
diff --git a/TOOLS/matroska.py b/TOOLS/matroska.py
index ab5684f1ed..4a672690b6 100755
--- a/TOOLS/matroska.py
+++ b/TOOLS/matroska.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
"""
Generate C definitions for parsing Matroska files.
Can also be used to directly parse Matroska files and display their contents.
diff --git a/TOOLS/vdpau_functions.py b/TOOLS/vdpau_functions.py
index 39e38a8bbe..85e6f1d942 100755
--- a/TOOLS/vdpau_functions.py
+++ b/TOOLS/vdpau_functions.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# Generate vdpau_template.c
diff --git a/configure b/configure
index d0fedf2d59..f994725791 100755
--- a/configure
+++ b/configure
@@ -1019,8 +1019,8 @@ echocheck "working compiler"
cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ."
echo "yes"
-echocheck "python3"
-command_check python3 -c '' || die "Python 3 is not functioning correctly. Check your installation and PATH."
+echocheck "python"
+command_check python -c '' || die "Python is not functioning correctly. Check your installation and PATH."
echo yes
if test -z "$_target" && x86 ; then