Mercurial > hg > stampit
view stampit/main.py @ 1:820beace15f2
get description from module docstring
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 19 Apr 2010 14:54:47 -0700 |
parents | af10f7e072ed |
children | 164af2a4d291 |
line wrap: on
line source
#!/usr/bin/env python """ tar up a set of packages in a virtualenv per platform: <package>-<version>-<platform>.tar.gz Example: mozmill-1.4.1-linux.tar.gz """ import sys from optparse import OptionParser from subprocess import call def main(args=sys.argv[1:]): usage = '%prog [options] <package> <platform>' parser = OptionParser(usage, description=globals()['__doc__']) parser.add_option('--version', help='version of the package to be installed (defaults to the current on the cheeseshop)') options, args = parser.parse_args(args) if not args: parser.print_help() sys.exit(0) # create a virtualenv # call(['virtualenv']) if __name__ == '__main__': main()