You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by mi...@apache.org on 2023/03/13 22:46:39 UTC

[impala] branch master updated: IMPALA-11955: (Addendum) Allow disabling Python version

This is an automated email from the ASF dual-hosted git repository.

michaelsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 4acc5057a IMPALA-11955: (Addendum) Allow disabling Python version
4acc5057a is described below

commit 4acc5057ade05c09fb811c9b3492dc15fbf42c2b
Author: Michael Smith <mi...@cloudera.com>
AuthorDate: Fri Mar 10 11:23:49 2023 -0800

    IMPALA-11955: (Addendum) Allow disabling Python version
    
    Allows disabling building for a specific Python version (even if present
    on the system) by setting `IMPALA_SYSTEM_PYTHON2_OVERRIDE` or
    `IMPALA_SYSTEM_PYTHON3_OVERRIDE` before sourcing impala-config.sh.
    
    Testing:
    - Manually tested setting variables then sourcing impala-config.sh
    
    Change-Id: I0d33fd385c40aa47cc3fd1893c298afe87a93d04
    Reviewed-on: http://gerrit.cloudera.org:8080/19609
    Reviewed-by: Joe McDonnell <jo...@cloudera.com>
    Tested-by: Michael Smith <mi...@cloudera.com>
---
 bin/impala-config.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/impala-config.sh b/bin/impala-config.sh
index 1e9f9ff17..2470ebb15 100755
--- a/bin/impala-config.sh
+++ b/bin/impala-config.sh
@@ -198,8 +198,8 @@ export IMPALA_THRIFT_PY_VERSION=0.16.0-p3
 unset IMPALA_THRIFT_PY_URL
 
 # Find system python versions for testing
-export IMPALA_SYSTEM_PYTHON2=$(command -v python2)
-export IMPALA_SYSTEM_PYTHON3=$(command -v python3)
+export IMPALA_SYSTEM_PYTHON2="${IMPALA_SYSTEM_PYTHON2_OVERRIDE-$(command -v python2)}"
+export IMPALA_SYSTEM_PYTHON3="${IMPALA_SYSTEM_PYTHON3_OVERRIDE-$(command -v python3)}"
 
 if [[ $OSTYPE == "darwin"* ]]; then
   IMPALA_CYRUS_SASL_VERSION=2.1.26