Climate Systems Center at the University of Chicago  Return to CSC Home

Package Distribution Structure and HTML Documentation Template

General

This page describes the distribution structure and HTML documentation templates for Python packages developed by ITR after March 2004. This page is written by Johnny Lin and is last updated March 24, 2004.

Distribution Structure

Packages distributions have the following directory structure:

/package_directory
   /doc
       /imgs
       /style
   /src
   /lib
   /test
   README.txt
   setup.py

All names of files and directories are as given above, except package_directory which is the name of the package distribution directory given by the author. Generally, it is made of the package name followed by a hyphen and the version number. For instance, atmqty-0.3.0.1 contains version 0.3.0.1 of package atmqty.

Compiled source goes in /src, Python code in /lib, documentation (including pydoc HTML documentation) in /doc (imgs and style are for images and CSS files respectively), and test scripts in /test. Thus, install occurs by:

python setup.py install
via the distutils package.

HTML Documentation Templates

All HTML documentation (not created by pydoc) for the packages should be based upon the template.html and librootcsc.css HTML and CSS files below. This includes bug reports, examples, manuals, and other references.

A few notes about the templates:

Climate Systems Center Home