WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools/check: No need to check for ${PYTHO

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/check: No need to check for ${PYTHON} existence.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2009 04:45:19 -0700
Delivery-date: Mon, 20 Jul 2009 04:45:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/check: No need to check for ${PYTHON} existence., Xen patchbot-unstable <=