Adam Heath
2005-Mar-11 23:36 UTC
[Xen-devel] Patch [1/4] Debian-2.0.5-1 python-install.patch
Name: python-install.patch Description: Use --root instead of --home --home causes python''s distutils to install into /usr/lib/python/, while --root causes it to install into /usr/lib/python$ver/site-packages, which is the more correct location. Signed-off-by: Adam Heath <doogie@brainfood.com> --- xen-2.0.5.orig/tools/python/Makefile +++ xen-2.0.5/tools/python/Makefile @@ -5,8 +5,8 @@ all: CFLAGS="$(CFLAGS)" python setup.py build -install: all - CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" +install: build + CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" clean: rm -rf build *.pyc *.pyo *.o *.a *~ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
<doogie@brainfood.com>
2005-Mar-12 00:00 UTC
[Xen-devel] Patch [1/4] Debian-2.0.5-1 python-install.patch
Name: python-install.patch Description: Use --root instead of --home --home causes python''s distutils to install into /usr/lib/python/, while --root causes it to install into /usr/lib/python$ver/site-packages, which is the more correct location. Signed-off-by: Adam Heath <doogie@brainfood.com> DiffStat: tools/python/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- xen-2.0.5.orig/tools/python/Makefile +++ xen-2.0.5/tools/python/Makefile @@ -5,8 +5,8 @@ all: CFLAGS="$(CFLAGS)" python setup.py build -install: all - CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" +install: build + CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" clean: rm -rf build *.pyc *.pyo *.o *.a *~ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Kurt Garloff
2005-Mar-13 11:08 UTC
Re: [Xen-devel] Patch [1/4] Debian-2.0.5-1 python-install.patch
Hi Adam, On Fri, Mar 11, 2005 at 05:36:55PM -0600, Adam Heath wrote:> Name: python-install.patch > Description: Use --root instead of --home > --home causes python''s distutils to install into /usr/lib/python/, while > --root causes it to install into /usr/lib/python$ver/site-packages, which > is the more correct location. > Signed-off-by: Adam Heath <doogie@brainfood.com> > > --- xen-2.0.5.orig/tools/python/Makefile > +++ xen-2.0.5/tools/python/Makefile > @@ -5,8 +5,8 @@ > all: > CFLAGS="$(CFLAGS)" python setup.py build > > -install: all > - CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" > +install: build > + CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" > > clean: > rm -rf build *.pyc *.pyo *.o *.a *~Thanks, we have the same change in our patchset. I added --optimize=2 as well. Regards, -- Kurt Garloff <kurt@garloff.de> [Koeln, DE] Physics:Plasma modeling <garloff@plasimo.phys.tue.nl> [TU Eindhoven, NL] Linux: SUSE Labs (Director) <garloff@suse.de> [Novell Inc]