Python program organization

François Pinard pinard at iro.umontreal.ca
Sat Feb 21 08:58:54 EST 2004


[Derek W]

> Is it proper to break the program up into modules and put all of the
> modules in a package even if the modules would be of little or no use
> to others (such as the program specific GUI code)?

Hi, Derek.  It looks proper to me.  You might want to break a big
package into sub-packages, but all of it usually goes into a single
directory hierarchy.

> Would this package then go under Python's site-packages directory when
> the program is installed?

This is the most natural thing to do.

> Would distribution of a program like this use distutils?

Why not? :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list