How to organize Python files in a (relatively) big project

Micah Elliott mde at micah.elliott.name
Wed Oct 19 16:14:18 EDT 2005


On Oct 19, Jarek Zgoda wrote:
> 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.

It allows users to easily specify the installation prefix.  The
default should be the value of "sys.prefix".

Note that your modules/packages will be installed within your python
installation under its site-packages/ directory.

-- 
_ _     ___
|V|icah |- lliott  http://micah.elliott.name  mde at micah.elliott.name
" "     """



More information about the Python-list mailing list