GNU Info

Info Node: (python2.1-dist.info)Listing individual modules

(python2.1-dist.info)Listing individual modules


Next: Describing extension modules Prev: Listing whole packages Up: Writing the Setup Script
Enter node , (file) or (file)node

Listing individual modules
==========================

For a small module distribution, you might prefer to list all modules
rather than listing packages--especially the case of a single module
that goes in the "root package" (i.e., no package at all).  This
simplest case was shown in section~Note: A simple example; here is a
slightly more involved example:

     py_modules = ['mod1', 'pkg.mod2']

This describes two modules, one of them in the "root" package, the
other in the `pkg' package.  Again, the default package/directory
layout implies that these two modules can be found in `mod1.py' and
`pkg/mod2.py', and that `pkg/__init__.py' exists as well.  And again,
you can override the package/directory correspondence using the
`package_dir' option.


automatically generated by info2www version 1.2.2.9