From: Markus Koschany <apo@debian.org>
Date: Sun, 30 Aug 2020 16:14:42 +0200
Subject: python3

Fix python3 build failures.
---
 bam.lua                   | 4 ++--
 scripts/build.py          | 2 +-
 scripts/font_installer.sh | 2 +-
 scripts/make_src.py       | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bam.lua b/bam.lua
index c74c80a..e2ca8fa 100644
--- a/bam.lua
+++ b/bam.lua
@@ -23,7 +23,7 @@ generated_icon_dir = "build/icons"
 builddir = "build/output"
 content_src_dir = "datasrc/"
 
-python_in_path = ExecuteSilent("python -V") == 0
+python_in_path = ExecuteSilent("python3 -V") == 0
 
 -- data compiler
 function Python(name)
@@ -34,7 +34,7 @@ function Python(name)
 			return name
 		end
 	end
-	return "python " .. name
+	return "python3 " .. name
 end
 
 function CHash(output, ...)
diff --git a/scripts/build.py b/scripts/build.py
index d9904c4..9c2dc30 100644
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -247,7 +247,7 @@ if flag_make_release:
 	os.chdir(src_dir_teeworlds)
 	command = '"%s/%s/scripts/make_release.py" %s %s' % (work_dir, src_dir_teeworlds, version_teeworlds, platform)
 	if os.name != "nt":
-		command = "python %s" % command
+		command = "python3 %s" % command
 	if os.system(command) != 0:
 		bail("failed to make a relase of %s" % name)
 	final_output = "FAIL"
diff --git a/scripts/font_installer.sh b/scripts/font_installer.sh
index 5b99b68..dea6320 100755
--- a/scripts/font_installer.sh
+++ b/scripts/font_installer.sh
@@ -1,3 +1,3 @@
 echo Generating .fnts...
 ../../font_generator/a.out
-python ../scripts/font_converter.py default*.fnt
+python3 ../scripts/font_converter.py default*.fnt
diff --git a/scripts/make_src.py b/scripts/make_src.py
index 33e0f92..8a69740 100755
--- a/scripts/make_src.py
+++ b/scripts/make_src.py
@@ -34,7 +34,7 @@ os.chdir(root_dir)
 if 1:
 	os.system("svn export svn://svn.teeworlds.com/teeworlds/%s teeworlds" % svn_tree)
 	os.chdir("teeworlds")
-	os.system("python scripts/make_release.py %s src" % version)
+	os.system("python3 scripts/make_release.py %s src" % version)
 	os.chdir(root_dir)
 	for f in os.listdir("teeworlds"):
 		if "teeworlds" in f and "src" in f and (".zip" in f or ".tar.gz" in f):
