* [PATCH][TOOLS] make python check scripts use $(PYTHON) make variable
@ 2009-07-09 15:01 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-07-09 15:01 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
Hi!
Attached patch makes python check scrpts use of $(PYTHON) make variable.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_check_python.diff --]
[-- Type: text/x-diff, Size: 2094 bytes --]
diff -r f964ec304363 tools/check/Makefile
--- a/tools/check/Makefile Thu Jul 09 15:26:24 2009 +0100
+++ b/tools/check/Makefile Thu Jul 09 16:56:41 2009 +0200
@@ -7,12 +7,12 @@ all install: check-build
# Check this machine is OK for building on.
.PHONY: check-build
check-build:
- LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk build
+ PYTHON=$(PYTHON) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk build
# Check this machine is OK for installing on.
.PHONY: check-install
check-install:
- LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk install
+ PYTHON=$(PYTHON) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk install
.PHONY: clean
clean:
diff -r f964ec304363 tools/check/check_python
--- a/tools/check/check_python Thu Jul 09 15:26:24 2009 +0100
+++ b/tools/check/check_python Thu Jul 09 16:56:41 2009 +0200
@@ -3,7 +3,11 @@
. ./funcs.sh
-python -c '
+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)
' || fail "need python version >= 2.2"
diff -r f964ec304363 tools/check/check_python_devel
--- a/tools/check/check_python_devel Thu Jul 09 15:26:24 2009 +0100
+++ b/tools/check/check_python_devel Thu Jul 09 16:56:41 2009 +0200
@@ -3,7 +3,12 @@
. ./funcs.sh
-python -c '
+if test -z ${PYTHON}; then
+ PYTHON=`/usr/bin/env python 2>/dev/null`
+fi
+has_or_fail ${PYTHON}
+
+${PYTHON} -c '
import os.path, sys
for p in sys.path:
if os.path.exists(p + "/config/Makefile"):
diff -r f964ec304363 tools/check/check_python_xml
--- a/tools/check/check_python_xml Thu Jul 09 15:26:24 2009 +0100
+++ b/tools/check/check_python_xml Thu Jul 09 16:56:41 2009 +0200
@@ -3,5 +3,10 @@
. ./funcs.sh
-python -c 'import xml.dom.minidom' 2>/dev/null || \
+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 || \
fail "can't import xml.dom.minidom"
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-09 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 15:01 [PATCH][TOOLS] make python check scripts use $(PYTHON) make variable Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.