[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools/check: No need to check for ${PYTHON} existence.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1247665981 -3600 # Node ID bc80ccb79c5beb4f02f725d2f9a51164e48eb90b # Parent 855d0f17e36444ea07da8133884d50d67624dfa7 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@xxxxxxxxxx> --- tools/check/check_python | 4 ---- tools/check/check_python_devel | 3 --- tools/check/check_python_xml | 3 --- 3 files changed, 10 deletions(-) diff -r 855d0f17e364 -r bc80ccb79c5b tools/check/check_python --- a/tools/check/check_python Wed Jul 15 14:35:34 2009 +0100 +++ b/tools/check/check_python Wed Jul 15 14:53:01 2009 +0100 @@ -3,10 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi - ${PYTHON} -c ' import sys sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2) diff -r 855d0f17e364 -r bc80ccb79c5b tools/check/check_python_devel --- a/tools/check/check_python_devel Wed Jul 15 14:35:34 2009 +0100 +++ b/tools/check/check_python_devel Wed Jul 15 14:53:01 2009 +0100 @@ -3,9 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi has_or_fail ${PYTHON} ${PYTHON} -c ' diff -r 855d0f17e364 -r bc80ccb79c5b tools/check/check_python_xml --- a/tools/check/check_python_xml Wed Jul 15 14:35:34 2009 +0100 +++ b/tools/check/check_python_xml Wed Jul 15 14:53:01 2009 +0100 @@ -3,9 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi has_or_fail ${PYTHON} ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |