debuggers.hg

changeset 19986:bc80ccb79c5b

tools/check: No need to check for ${PYTHON} existence.

It must exist as otherwise the build will fail since we reference
$(PYTHON) all over the place. Furthermore the fallback of
'/usr/bin/env python' actually runs Python, it doesn't get the path to
it. So that wouldn't work very well.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 15 14:53:01 2009 +0100 (2009-07-15)
parents 855d0f17e364
children 10d806ca5952
files tools/check/check_python tools/check/check_python_devel tools/check/check_python_xml
line diff
     1.1 --- a/tools/check/check_python	Wed Jul 15 14:35:34 2009 +0100
     1.2 +++ b/tools/check/check_python	Wed Jul 15 14:53:01 2009 +0100
     1.3 @@ -3,10 +3,6 @@
     1.4  
     1.5  . ./funcs.sh
     1.6  
     1.7 -if test -z ${PYTHON}; then
     1.8 -	PYTHON=`/usr/bin/env python 2>/dev/null`
     1.9 -fi
    1.10 -
    1.11  ${PYTHON} -c '
    1.12  import sys
    1.13  sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
     2.1 --- a/tools/check/check_python_devel	Wed Jul 15 14:35:34 2009 +0100
     2.2 +++ b/tools/check/check_python_devel	Wed Jul 15 14:53:01 2009 +0100
     2.3 @@ -3,9 +3,6 @@
     2.4  
     2.5  . ./funcs.sh
     2.6  
     2.7 -if test -z ${PYTHON}; then
     2.8 -	PYTHON=`/usr/bin/env python 2>/dev/null`
     2.9 -fi
    2.10  has_or_fail ${PYTHON}
    2.11  
    2.12  ${PYTHON} -c '
     3.1 --- a/tools/check/check_python_xml	Wed Jul 15 14:35:34 2009 +0100
     3.2 +++ b/tools/check/check_python_xml	Wed Jul 15 14:53:01 2009 +0100
     3.3 @@ -3,9 +3,6 @@
     3.4  
     3.5  . ./funcs.sh
     3.6  
     3.7 -if test -z ${PYTHON}; then
     3.8 -	PYTHON=`/usr/bin/env python 2>/dev/null`
     3.9 -fi
    3.10  has_or_fail ${PYTHON}
    3.11  
    3.12  ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \