Skip to content

Commit

Permalink
build: use python3 exclusively
Browse files Browse the repository at this point in the history
Python 2 is deprecated and is going to be removed from Linux
distributions in the short term [1,2]. Thus, (parts of) the build
process will fail on current systems like e.g. Debian unstable.

The /bin/python binary is not going to exist anymore. The canonical
name for the Python 3 binary is, you guess it, /bin/python3. So, let's
just use this during our build process and go future proof.

Fixes #1158.

[1] https://wiki.debian.org/Python#Python_in_Debian
[2] https://wiki.debian.org/Python/2Removal
  • Loading branch information
fabiangreffrath committed Nov 27, 2020
1 parent df1837c commit b291e00
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ orig_CFLAGS="$CFLAGS"
AM_PROG_AR
AC_PROG_CC
AC_PROG_RANLIB
AC_CHECK_PROG(HAVE_PYTHON, python, true, false)
AC_CHECK_PROG(HAVE_PYTHON, python3, true, false)

OPT_LEVEL=2

Expand Down
2 changes: 1 addition & 1 deletion data/convert-icon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright(C) 2005-2014 Simon Howard
#
Expand Down
2 changes: 1 addition & 1 deletion man/docgen
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Chocolate Doom self-documentation tool. This works similar to javadoc
# or doxygen, but documents command line parameters and configuration
Expand Down
2 changes: 1 addition & 1 deletion man/simplecpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Contributors to the Freedoom project. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion pkg/win32/cp-with-libs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright(C) 2016 Simon Howard
#
Expand Down
2 changes: 1 addition & 1 deletion textscreen/fonts/convert-font
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright(C) 2016 Simon Howard
#
Expand Down

0 comments on commit b291e00

Please sign in to comment.