Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2022-01-19 20:38:58 +0000
committerTom Lane2022-01-19 20:38:58 +0000
commitf201da39edcd6ac1ab9a3edf3e20e2a73bbbe69e (patch)
tree3203bc7de96354bb93efb2bba051d47a96e20d66 /configure
parenta7f4171071bbcdec79e8afa4cad1bc6951b098cc (diff)
Make configure prefer python3 to plain python.
This avoids possibly selecting Python 2.x on systems that have both Python 2 and Python 3. We used to feel that what "python" links to is a user choice that we should honor. However, we're about to cease support for Python 2, so users will no longer have any choice of that sort. This small change is being made ahead of the big Python-2-ectomy so that we can see how much of the buildfarm is not yet prepared for that. Systems with only Python 2 will continue to build that way, for now. Discussion: https://postgr.es/m/2872c9a0-4b0a-1354-d5f6-94d6f85ba354@enterprisedb.com
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 3f2aea0d7de..fb4064afa54 100755
--- a/configure
+++ b/configure
@@ -10279,7 +10279,7 @@ fi
if test "$with_python" = yes; then
if test -z "$PYTHON"; then
- for ac_prog in python python3 python2
+ for ac_prog in python3 python python2
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2