File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 99# Look for Python and set the output variable 'PYTHON' if found,
1010# fail otherwise.
1111#
12- # Since we are transitioning to supporting only Python 3.x,
13- # prefer python3 to plain python. If the latter exists at all,
14- # it very possibly points to python2, which we don't want to
15- # select unless it's the only choice.
12+ # As the Python 3 transition happens and PEP 394 isn't updated, we
13+ # need to cater to systems that don't have unversioned "python" by
14+ # default. Some systems ship with "python3" by default and perhaps
15+ # have "python" in an optional package. Some systems only have
16+ # "python2" and "python3", in which case it's reasonable to prefer the
17+ # newer version.
1618AC_DEFUN ( [ PGAC_PATH_PYTHON] ,
17- [ PGAC_PATH_PROGS(PYTHON, [ python3 python python2] )
19+ [ PGAC_PATH_PROGS(PYTHON, [ python python3 python2] )
1820AC_ARG_VAR ( PYTHON , [ Python program] ) dnl
1921if test x"$PYTHON" = x""; then
2022 AC_MSG_ERROR ( [ Python not found] )
Original file line number Diff line number Diff line change @@ -10279,7 +10279,7 @@ fi
1027910279
1028010280if test "$with_python" = yes; then
1028110281 if test -z "$PYTHON"; then
10282- for ac_prog in python3 python python2
10282+ for ac_prog in python python3 python2
1028310283do
1028410284 # Extract the first word of "$ac_prog", so it can be a program name with args.
1028510285set dummy $ac_prog; ac_word=$2
Original file line number Diff line number Diff line change @@ -1875,7 +1875,7 @@ build-postgresql:
18751875 language becomes available. See
18761876 <xref linkend="plpython-python23"/>
18771877 for more information. If this is not set, the following are probed
1878- in this order: <literal>python3 python python2</literal>.
1878+ in this order: <literal>python python3 python2</literal>.
18791879 </para>
18801880 </listitem>
18811881 </varlistentry>
You can’t perform that action at this time.
0 commit comments