Directory Structure for Distutils

Thomas Güttler guettler at
Mon Jul 21 11:35:36 CEST 2003


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/dist (created by distutils)
pyla/pyla/ # This should be in site-packages/pyla
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?


More information about the Python-list mailing list