Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > packaging question - documentation

Thread Tools

packaging question - documentation
Posts: n/a
Hi All,

I am rearranging the layout of one of my python projects so that it
more closely conforms to how most python projects seem to work. I now
have a structure like this:

- seismic
- bulk of the code
- scripts
- programs that go in bin

I am using OptionParser, help2man, groff and man2html to provide man
pages. Everything was sitting in the top level directory, so it was
clear where to put these, but where do I put the foo.help2man files
that contain extra text for the man pages? If I put it in scripts,
that is pretty easy to cope with, but I was thinking about a docs
directory, but then the build process might be more difficult. Or
should I be putting in another string in each executable that contains
this extra man page info? Then it would show up in epydoc as well.
Maybe something like

__help2man__ = '''
Kurt Schwehr



The --coord-unit option is designed to allow use of databases that
exclude the CoordUnit field. This field is probably the same for all
traces in the majority of SEGY data files, so most segy-py drivers
will want to exclude coordunit from the short list (see
The values are taken from page 14 of the SEG-Y Rev 1 specification

-1 = Follow field 89-90 of the trace header
1 = Length (meters or feet) [NOT supported]
2 = Seconds of arc
3 = Degrees, minutes, seconds (DMS) [NOT SUPPORTED]

I am still in the middle of shuffling the tree about, but it is
available here...

Any thoughts would be greatly appreciated! I am still trying to
understand the best practices for python packaging.


Reply With Quote
Posts: n/a
Sorry about not being clear. I have been downloading quite a few
packages for examples, but have not found a good example of man page
building from optparse.

- seismic
- __init.py__
- bulk of the code *.py
- scripts
- programs that go in bin/the users executable path (no .py

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gem packaging documentation Brian Candler Ruby 1 03-09-2007 05:59 PM
converting XSD documentation to HTML documentation XML 1 09-16-2006 12:09 PM
Python documentation: How about structured documentation? Looking for comments/suggestions Kenneth McDonald Python 2 05-06-2004 04:11 AM
Principles of documentation (was: Python Documentation Blows!) Cameron Laird Python 1 04-03-2004 06:54 PM
Re: Services packaging question Kline Sphere MCSD 0 06-29-2003 12:22 PM