[pygccxml-commit] SF.net SVN: pygccxml:[1681] pydsc_dev/setup.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-02-15 09:42:03
|
Revision: 1681 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1681&view=rev Author: roman_yakovenko Date: 2009-02-15 09:41:59 +0000 (Sun, 15 Feb 2009) Log Message: ----------- remove epydoc Modified Paths: -------------- pydsc_dev/setup.py Modified: pydsc_dev/setup.py =================================================================== --- pydsc_dev/setup.py 2009-02-15 07:43:14 UTC (rev 1680) +++ pydsc_dev/setup.py 2009-02-15 09:41:59 UTC (rev 1681) @@ -9,54 +9,11 @@ from distutils.core import setup from distutils.cmd import Command -def generate_doc(): - """Generate the epydoc reference manual. - """ - print "Generating epydoc files..." - - from epydoc.docbuilder import build_doc_index - from epydoc.docwriter.html import HTMLWriter - - docindex = build_doc_index(['pydsc']) - html_writer = HTMLWriter( docindex - , prj_name='pydsc' - , prj_url='http://www.language-binding.net' - , include_sourcecode=False #This will decrease the size of generated documentation - , show_private=False - , show_frames=False) - - html_writer.write( os.path.join('docs', 'apidocs') ) - -class doc_cmd(Command): - """This is a new distutils command 'doc' to build the epydoc manual. - """ - - description = 'build the API reference using epydoc' - user_options = [('no-doc', None, "don't run epydoc")] - boolean_options = ['no-doc'] - - def initialize_options (self): - self.no_doc = 0 - - def finalize_options (self): - pass - - def run(self): - if self.no_doc: - return - generate_doc() - - -# Generate the doc when a source distribution is created -if sys.argv[-1]=="sdist": - generate_doc() - setup( name="pydsc" - , version = "0.3" + , version = "0.4" , description="Python documentation and comments spell checker" , author="Roman Yakovenko" , author_email="rom...@gm..." , url='http://www.language-binding.net' , py_modules=[ 'pydsc' ] - , cmdclass = {"doc" : doc_cmd} ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |