[Python-Dev] Python and the Linux Standard Base (LSB)

Barry Warsaw barry at python.org
Thu Nov 30 06:09:30 CET 2006

Hash: SHA1

On Nov 29, 2006, at 10:20 PM, glyph at divmod.com wrote:

> Another nice feature there is that it uses a pre-existing layout  
> convention (bin lib share etc ...) rather than attempting to build  
> a new one, so the only thing that has to change about the package  
> installation is the root.

That's an excellent point, because in configure-speak I guess you  
could just use --prefix=<home>/.local and everything would lay out  
correctly.  (I guess that's the whole point, eh? :)

> One of the things that combinator hacks is where distutils thinks  
> it should install to - when *I* type "python setup.py install"  
> nothing tries to insert itself into system directories (those are  
> for Ubuntu, not me) - ~/.local is the *default* install location.   
> I haven't managed to make this feature work with eggs yet, but I  
> haven't done a lot of work with setuptools.

That's really nice.  So if I "sudo python setup.py install" it'll see  
uid 0 and install in the system location?

> On the "easy_install" naming front, how about "layegg"?

I think I once proposed "hatch" but that may not be quite the right  
word (where's Ken M when you need him? :).

> >What if then that importer were general enough (...)
> These all sound like interesting ideas, but they're starting to get  
> pretty far afield - I wish I had more time to share ideas about  
> packaging, but I know too well that I'm not going to be able to  
> back them up with any implementation effort.

Yeah, same here, so I'll shut up now.

> I'd really like Python to use the ~/.local/bin / ~/.local/lib  
> convention for installing packages, though.

I'm sold.
- -Barry

Version: GnuPG v1.4.5 (Darwin)


More information about the Python-Dev mailing list