From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH][TOOLS] make python check scripts use $(PYTHON) make variable
Date: Thu, 9 Jul 2009 17:01:34 +0200 [thread overview]
Message-ID: <200907091701.34723.Christoph.Egger@amd.com> (raw)
[-- 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
reply other threads:[~2009-07-09 15:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200907091701.34723.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.