bitkeeper revision 1.1159.270.4 (42330defA42oRGAfkwmQERgN45uyOg)
authorkaf24@viper.(none) <kaf24@viper.(none)>
Sat, 12 Mar 2005 15:42:39 +0000 (15:42 +0000)
committerkaf24@viper.(none) <kaf24@viper.(none)>
Sat, 12 Mar 2005 15:42:39 +0000 (15:42 +0000)
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>
tools/python/Makefile

index 3a42f6047fa73f11dbd34804582fb7d1896d238b..a676cdf0e901b044a542f094fdb91558ca647703 100644 (file)
@@ -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 *~