How to organize Python files in a (relatively) big project
Jarek Zgoda
jzgoda at o2.usun.pl
Wed Oct 19 16:03:16 EDT 2005
Micah Elliott napisał(a):
>>How to install this structure eg. on Linux? What layout do you
>>recommend? It's tempting to use /opt hierarchy for installation
>>target (as it gives relatively much freedom within application
>>directory), but many administrators are reluctant to use this
>>hierarchy and prefer more standarized targets, such as /usr or
>>/usr/local.
>
> Read about (and use) the Python-provided distutils, and let it do the
> work for you. In particular,
> <http://www.python.org/doc/2.4.2/inst/alt-install-windows.html>
> discusses installation location. The file name is a misnomer; it's
> equally applicable to linux.
I think that installing *application* (not misc. library) modules in
site-packages is at least stupid idea, as it makes a special filesystem
inside other, much more standarized filesystem (Windows, FHS, etc.). Why
not to do this usual way: libraries to $prefix/lib/$appname-$version,
binary to $prefix/bin, shared files to $prefix/share/$appname, etc --
and appropriately on Windows.
--
Jarek Zgoda
http://jpa.berlios.de/
More information about the Python-list
mailing list