All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: debian python-install.patch (3 of 5)
@ 2005-02-06 18:39 Ian Pratt
  2005-02-06 18:46 ` Adam Heath
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-06 18:39 UTC (permalink / raw)
  To: Adam Heath; +Cc: xen-devel, Keir.Fraser, ian.pratt

> > Do you use the dist directory for your package build? If 
> not, why do you
> > care?
> 
> I don't use the dist target, but I do use the install target, 
> and set DESTDIR
> to debian/install.

I'd have no problem with the 'install' target doing something different
from 'dist'.

> > If you do, maybe we'll need some flag to change the 
> behaviour. This will
> > all be rather more obvious if we can get the debian package 
> build runes
> > checked into the xen repo.
> 
> Well, I need to figure out how that can happen.  I may have 
> to maintain some
> changes for debian, that make no sense upstream(for instance, 
> disabling the
> html doc generation, because latex2html is non-free), and 
> this is difficult
> when everything is in one repo.

The latex2html issue is easy -- we should check to see whether the
latex2html binary exists, otherwise skip it.

> Besides, if the debian bits are added to bitkeeper, then I 
> can't ever check
> things in to them(I'm not allowed to use bitkeeper, because I work on
> dpkg-source).

Eevn if you don't always directly use the debian bits that are in the BK
repo, I'd like to have them there, and kept fairly up to date.
Presumably they're not going to change much once they're 'done'?

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: debian python-install.patch (3 of 5)
@ 2005-02-07 19:16 Ian Pratt
  2005-02-07 20:38 ` Adam Heath
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-07 19:16 UTC (permalink / raw)
  To: Adam Heath, Brian Wolfe; +Cc: Xen Devel Mailing List, Keir.Fraser, ian.pratt


I think the main point is that we're only too happy to put stuff into
Xen to make it easier to build rpm/deb's etc. I'd like to have this
stuff checked into our tree to minimize the downstream diffs -- if it's
in the tree then we're more likely to remember to bare the requirements
in mind with future changes. It also gives us (as in xen-devel) the
opportunity to see how Xen is being packaged and provide
comments/feedback, and perhaps encourage some kind of uniformity across
the different vendor packages.

However, we still need to make sure that all the build options that are
convenient for developers are still available, ideally as the default.

Ian

> -----Original Message-----
> From: Adam Heath [mailto:doogie@brainfood.com] 
> Sent: 07 February 2005 18:50
> To: Brian Wolfe
> Cc: Ian Pratt; Xen Devel Mailing List; 
> Keir.Fraser@cl.cam.ac.uk; ian.pratt@cl.cam.ac.uk
> Subject: RE: [Xen-devel] debian python-install.patch (3 of 5)
> 
> On Mon, 7 Feb 2005, Brian Wolfe wrote:
> 
> > On Sun, 2005-02-06 at 18:00 +0000, Ian Pratt wrote:
> > >  > > >  --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.
> > > > Er, in all packages I have ever used, make dist has given me
> > > > a tree(which is
> > > > normally placed into a tar by upstream, and 'dist'ributed,
> > > > hence the name),
> > > > that can then be optionally overlayed ontop an already
> > > > installed system.
> > >
> > > Yes, but its quite usual for bpeople to install Xen on a different
> > > system to which is was built (e.g. our binary install tar file).
> > > Installing into /usr/lib/python/ means that it'll be 
> found on the module
> > > search path, whereas /usr/lib/python$ver/site-packages 
> will only work if
> > > the version is the same.
> >
> > Mind please that I have no empirical proof, just personal 
> experience and
> > opinions/preferences expressed to me by admins I know.
> >
> > I would have to disagree here. If Xen is to be taken seriously in a
> > commercial environment, then it's going to have to be available as a
> > dist binary from either redhat, suse, debina, or another 
> top level linux
> > distro IMHO.
> >
> > Having to compile things for every machine tends to turn 
> potential users
> > off that aren't programmers or gentoo/*bsd afficianados from my
> > experience.
> >
> > Heck, this is why I stated packaging 1.3 in the first place. I just
> > couldn't deal with deploying by hand every couple of days. I really
> > needed it to be automatic as possible.
> 
> You don't actually come out for or against any variation. :|
> 


-------------------------------------------------------
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_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: debian python-install.patch (3 of 5)
@ 2005-02-06 18:00 Ian Pratt
  2005-02-06 18:24 ` Adam Heath
  2005-02-07 13:19 ` Brian Wolfe
  0 siblings, 2 replies; 18+ messages in thread
From: Ian Pratt @ 2005-02-06 18:00 UTC (permalink / raw)
  To: Adam Heath; +Cc: xen-devel, Keir.Fraser, ian.pratt

 > > >  --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.
> Er, in all packages I have ever used, make dist has given me 
> a tree(which is
> normally placed into a tar by upstream, and 'dist'ributed, 
> hence the name),
> that can then be optionally overlayed ontop an already 
> installed system.

Yes, but its quite usual for bpeople to install Xen on a different
system to which is was built (e.g. our binary install tar file).
Installing into /usr/lib/python/ means that it'll be found on the module
search path, whereas /usr/lib/python$ver/site-packages will only work if
the version is the same.

Do you use the dist directory for your package build? If not, why do you
care?
 
If you do, maybe we'll need some flag to change the behaviour. This will
all be rather more obvious if we can get the debian package build runes
checked into the xen repo.

Thanks,
Ian 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: debian python-install.patch (3 of 5)
@ 2005-02-05  8:41 Ian Pratt
  2005-02-05 18:12 ` Adam Heath
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-05  8:41 UTC (permalink / raw)
  To: Adam Heath, xen-devel; +Cc: Keir.Fraser, ian.pratt

 
> 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.

This was deliberately changed a few weeks back. 

http://xen.bkbits.net:8080/xen-2.0-testing.bk/diffs/tools/python/Makefil
e@1.10?nav=index.html|src/.|src/tools|src/tools/python|hist/tools/python
/Makefile

When doing a make dist, dist/install/usr/lib/python is probably the best
location to put the packages.

When doing a reall install, /usr/lib/python$ver/site-packages may well
be the right location.

The build system has been messed around with so much I'm not sure its
still possible to tell the difference between the two cases.

Can we at least get agreement on the behaviour we want?

Ian

> Signed-off-by: Adam Heath <doogie@brainfood.com>
> DiffStat:
>  tools/python/Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> --- xen-2.0.4.orig/tools/python/Makefile
> +++ xen-2.0.4/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 *~


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* debian python-install.patch (3 of 5)
@ 2005-02-05  4:24 Adam Heath
  0 siblings, 0 replies; 18+ messages in thread
From: Adam Heath @ 2005-02-05  4:24 UTC (permalink / raw)
  To: xen-devel

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.4.orig/tools/python/Makefile
+++ xen-2.0.4/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 *~



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-02-07 22:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-06 18:39 debian python-install.patch (3 of 5) Ian Pratt
2005-02-06 18:46 ` Adam Heath
2005-02-06 18:49   ` Mark Williamson
2005-02-06 19:33     ` Adam Heath
2005-02-06 23:47     ` Christian Limpach
  -- strict thread matches above, loose matches on Subject: below --
2005-02-07 19:16 Ian Pratt
2005-02-07 20:38 ` Adam Heath
2005-02-06 18:00 Ian Pratt
2005-02-06 18:24 ` Adam Heath
2005-02-06 18:28   ` Mark Williamson
2005-02-06 18:42     ` Adam Heath
2005-02-06 18:31   ` Adam Heath
2005-02-07 13:19 ` Brian Wolfe
2005-02-07 18:50   ` Adam Heath
2005-02-07 22:20   ` Rik van Riel
2005-02-05  8:41 Ian Pratt
2005-02-05 18:12 ` Adam Heath
2005-02-05  4:24 Adam Heath

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.