[Pkg-gnupg-commit] [gpgme] 113/132: python: Improve Python detection.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:01:36 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gpgme.

commit 104635eb503ec764146731888a6975b4329660fd
Author: Justus Winter <justus at g10code.com>
Date:   Wed Mar 22 15:33:06 2017 +0100

    python: Improve Python detection.
    
    * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Prefer the generic
    'pythonX' over 'pythonX.Y'.  This way we select the users preferred
    version for both flavors.  Prefer 'python' over 'python3' but not over
    'python2' so that the algorithm still finds a 'python2' even if
    'python' is a Python3.
    
    Fixes-commit: 5189c08af9468cdeb6f16a6ecd0fee53e1e3aa0e
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 m4/python.m4 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/m4/python.m4 b/m4/python.m4
index 13962f4..822b2dd 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -37,8 +37,10 @@ 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],
-[python2.7 python2 python3.0 python3.1 python3.2 python3.3 python3.4 dnl
- python3.5 python3.6 python3.7 python3.8 python3 python])
+[python2 python2.7 dnl
+ python dnl
+ python3 python3.0 python3.1 python3.2 python3.3  dnl
+ python3.4 python3.5 python3.6 python3.7 python3.8])
 
   AC_ARG_VAR([PYTHON], [the Python interpreter])
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list