Directory Structure for Distutils

Thomas Güttler guettler at thomas-guettler.de
Mon Jul 21 11:35:36 CEST 2003


Hi!

What is the best directory structure for python modules?

I want to install a script called pyla into /usr/bin/pyla

The script pyla imports several methods and classes from a
module called pyla.

Up to would like to do it like this

pyla/
pyla/setup.py
pyla/dist (created by distutils)
pyla/pyla/__init__.py # This should be in site-packages/pyla
pyla/pyla/foo.py      
pyla/pyla # Script for /usr/bin cannot be called like this
          # because directory pyla exists.

Would be nice if there was a "prefered" directory strucuture
in the documentation of distutils. This should include
doc/, man/, etc/, ...

What does your directory strutures look like?

 thomas





More information about the Python-list mailing list