All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "bderzhavets@yahoo.com" <bderzhavets@yahoo.com>,
	xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed)
Date: Thu, 07 May 2009 14:15:04 +0100	[thread overview]
Message-ID: <4A02DED8.5000503@eu.citrix.com> (raw)
In-Reply-To: <18946.49599.604463.744370@mariner.uk.xensource.com>

Ian Jackson wrote:
> Alex Zeffertt writes ("Re: [Xen-devel] Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed)"):
>> It looks like the problem is that if you have python2.6 installed then 
>> xen-unstable.hg installs into /usr/lib/python2.6/site-packages/xen, but 
>> site-packages is no longer in the default path in python2.6.
> 
> This is a bit odd.
> 
> We don't do anything special with our uses of the Python distutils
> module.  The string "site-packages" does not even appear in
> xen-unstable the source[1] !
> 
>> PS This is also relevant 
>> https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570
> 
> This looks like exactly our bug.  So I think this is a bug in the
> Ubuntu python packaging.  But the Ubuntu Python maintainer seems not
> to have understood the problem and has called the bug a wishlist bug.
> 
> Ian.

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@eu.citrix.com>

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:

  reply	other threads:[~2009-05-07 13:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24  3:15 struct page_info Mukesh Rathor
2009-04-24  6:50 ` Jan Beulich
2009-04-24  7:21   ` Cihula, Joseph
2009-04-24  7:33     ` Keir Fraser
2009-04-25 12:54       ` Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed) Boris Derzhavets
2009-04-25 13:20         ` Thiago Camargo Martins Cordeiro
2009-04-25 16:08           ` Boris Derzhavets
2009-04-26 12:15         ` Boris Derzhavets
2009-04-27  5:56           ` Boris Derzhavets
2009-04-29 15:59             ` Ian Jackson
2009-04-29 16:15               ` Boris Derzhavets
2009-04-29 16:19                 ` Ian Jackson
2009-04-29 16:23                   ` Boris Derzhavets
2009-05-06 16:37                     ` Alex Zeffertt
2009-05-07 11:10                       ` Ian Jackson
2009-05-07 13:15                         ` Alex Zeffertt [this message]
2009-05-07 13:23                           ` [PATCH] " Keir Fraser
2009-05-07 14:16                             ` Ian Jackson
2009-05-07 14:37                               ` Keir Fraser
2009-05-07 15:08                                 ` Ian Jackson
2009-05-07 17:11                                   ` [PATCH] Permit user to suppress passing --prefix to setup.py Ian Jackson
2009-05-08 15:45                       ` Attempt to build xen-unstable on Ubuntu 9.04 Server (Ubuntu Desktop installed) Boris Derzhavets
2009-05-08 17:40                         ` Boris Derzhavets
2009-05-09 19:41                           ` 2.6.30-rc3-tip kernel's backend network driver response when loading Xen 3.4 Dom0 " Boris Derzhavets
2009-05-11 22:51                             ` Jeremy Fitzhardinge
2009-05-12  9:07                               ` Boris Derzhavets
2009-04-29 16:21                 ` Attempt to build xen-unstable " Boris Derzhavets
2009-04-24 21:38   ` struct page_info Mukesh Rathor
     [not found] <18946.60770.61629.799986@mariner.uk.xensource.com>

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=4A02DED8.5000503@eu.citrix.com \
    --to=alex.zeffertt@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=bderzhavets@yahoo.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.