aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
diff options
context:
space:
mode:
authorkaf24@viper.(none) <kaf24@viper.(none)>2005-03-12 15:42:39 +0000
committerkaf24@viper.(none) <kaf24@viper.(none)>2005-03-12 15:42:39 +0000
commit322cee6129e74bd9ff7595e92e17a77305abffcf (patch)
treefd8d3821a207186e2fd9e56f6f51af6e825b6488 /tools/python/Makefile
parentbe7913c187dda75bed2e1d6a5fb829ea206c1c90 (diff)
downloadxen-322cee6129e74bd9ff7595e92e17a77305abffcf.tar.gz
xen-322cee6129e74bd9ff7595e92e17a77305abffcf.tar.bz2
xen-322cee6129e74bd9ff7595e92e17a77305abffcf.zip
bitkeeper revision 1.1159.270.4 (42330defA42oRGAfkwmQERgN45uyOg)
Python packages can be installed to the Python installation's 'native' location, instead of generic /usr/lib/python, by specifying XEN_PYTHON_NATIVE_INSTALL in the environment or on the make command line. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r--tools/python/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile
index 3a42f6047f..a676cdf0e9 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -6,8 +6,13 @@ all: build
build:
CFLAGS="$(CFLAGS)" python setup.py build
+ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
+else
+install: all
+ CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
+endif
clean:
rm -rf build *.pyc *.pyo *.o *.a *~