automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: python: prioritize python 3.x o


From: Mike Frysinger
Subject: [automake-commit] branch master updated: python: prioritize python 3.x over 2.x
Date: Sat, 02 Dec 2023 06:59:10 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=6b4304c12161887171a5ce596157f8e5f25737e4

The following commit(s) were added to refs/heads/master by this push:
     new 6b4304c12 python: prioritize python 3.x over 2.x
6b4304c12 is described below

commit 6b4304c12161887171a5ce596157f8e5f25737e4
Author: Mike Frysinger <vapier@gentoo.org>
AuthorDate: Wed Jan 26 06:36:32 2022 -0500

    python: prioritize python 3.x over 2.x
    
    Since Python 2.x went EOL years ago, stop searching for it before
    any of the Python 3 versions.
    
    * m4/python.m4: Move python2 after all python3 versions.
    * NEWS: Mention update in version search.
---
 NEWS         | 6 ++++++
 m4/python.m4 | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 86a9c5d21..f24676040 100644
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,12 @@ New in 1.17:
   - Pass any options given to AM_PROG_LEX on to AC_PROG_LEX.
     (bug#65600 and bug#65730)
 
+* Miscellaneous changes
+
+  - AM_PATH_PYTHON will, after checking `python`, prefer any Python 3
+    version over any Python 2 version.  If a specific version of Python 2 is
+    still needed, the $PYTHON variable can be set beforehand.
+
 * Obsolescence:
 
   - py-compile no longer supports Python 0.x or 1.x versions.  Python 2.0,
diff --git a/m4/python.m4 b/m4/python.m4
index 56c8961af..62166317d 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -37,10 +37,11 @@ AC_DEFUN([AM_PATH_PYTHON],
   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
   dnl supported. (2.0 was released on October 16, 2000).
   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
-[python python2 python3 dnl
+[python python3 dnl
  python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 dnl
  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
  python3.2 python3.1 python3.0 dnl
+ python2 dnl
  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
  python2.0])
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]