You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2018/11/01 14:40:42 UTC

qpid-dispatch git commit: DISPATCH-1164 - Modified config.sh to work with python3 only

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master aacb11ad2 -> 9af66023d


DISPATCH-1164 - Modified config.sh to work with python3 only


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/9af66023
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/9af66023
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/9af66023

Branch: refs/heads/master
Commit: 9af66023d1e17a9591fcb4a5ecdd471117399831
Parents: aacb11a
Author: Fernando Giorgetti <fg...@redhat.com>
Authored: Wed Oct 31 17:48:06 2018 -0300
Committer: Fernando Giorgetti <fg...@redhat.com>
Committed: Wed Oct 31 17:48:06 2018 -0300

----------------------------------------------------------------------
 config.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/9af66023/config.sh
----------------------------------------------------------------------
diff --git a/config.sh b/config.sh
index 7e5e97f..d9733e8 100644
--- a/config.sh
+++ b/config.sh
@@ -26,7 +26,8 @@ export SOURCE_DIR=$(pwd)
 export BUILD_DIR=$SOURCE_DIR/${1:-build}
 export INSTALL_DIR=$SOURCE_DIR/${2:-install}
 
-PYTHON_LIB=$(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='$INSTALL_DIR')")
+PYTHON_BIN=`type -P python3 || type -P python`
+PYTHON_LIB=$(${PYTHON_BIN} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='$INSTALL_DIR'))")
 
 export LD_LIBRARY_PATH=$INSTALL_DIR/lib64:$INSTALL_DIR/lib:$LD_LIBRARY_PATH
 export PYTHONPATH=$PYTHON_LIB:$PYTHONPATH


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org