 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed)
 Ian Jackson wrote: 
 This patch appears to fix the problem. Just don't use --prefix. It doesn't seem to make any difference for python2.5, but it installs to the correct place under python 2.6. -- Alex Install xen python modules to correct path under python2.6. Do not use "--prefix" with setup.py scripts. In python2.6 this causes modules to be installed into /usr/lib/python2.6/site-packages, which is not on the default python2.6 sys.path.Without the --prefix option modules get installed to /usr/local/lib/python2.6/dist-packages, which is on the default python2.6 sys.path. If the installed version of python is python2.5, modules get 
installed to /usr/lib/python2.5/site-packages, which is on the default
python2.5 sys.path.
Signed-off-by <alex.zeffertt@xxxxxxxxxxxxx>
diff -r 474e93610de3 tools/pygrub/Makefile
--- a/tools/pygrub/Makefile     Thu May 07 10:46:49 2009 +0100
+++ b/tools/pygrub/Makefile     Thu May 07 13:59:20 2009 +0100
@@ -11,7 +12,7 @@
 .PHONY: install
 install: all
        CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install \
-               --prefix="$(PREFIX)" --root="$(DESTDIR)" --force
+               --root="$(DESTDIR)" --force
        $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
 .PHONY: clean
diff -r 474e93610de3 tools/python/Makefile
--- a/tools/python/Makefile     Thu May 07 10:46:49 2009 +0100
+++ b/tools/python/Makefile     Thu May 07 13:59:20 2009 +0100
@@ -56,7 +56,7 @@
 .PHONY: install
 install: install-messages install-dtd
        CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install \
-               --prefix="$(PREFIX)" --root="$(DESTDIR)" --force
+               --root="$(DESTDIR)" --force
 install-dtd: all
        $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
diff -r 474e93610de3 tools/security/Makefile
--- a/tools/security/Makefile   Thu May 07 10:46:49 2009 +0100
+++ b/tools/security/Makefile   Thu May 07 13:59:20 2009 +0100
@@ -61,7 +61,7 @@
        $(INSTALL_DIR) $(DESTDIR)$(ACM_SECGEN_CGIDIR)
        $(INSTALL_PROG) $(ACM_INST_CGI) $(DESTDIR)$(ACM_SECGEN_CGIDIR)
        python python/setup.py install \
-               --prefix="$(PREFIX)" --root="$(DESTDIR)" --force
+               --root="$(DESTDIR)" --force
 else
 .PHONY: all
 all:
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |