Revision: 57
Author: roman_yakovenko
Date: 2006-05-01 22:46:59 -0700 (Mon, 01 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=57&view=rev
Log Message:
-----------
switching to epidoc API instead of command line
Modified Paths:
--------------
pygccxml_dev/setup.py
Modified: pygccxml_dev/setup.py
===================================================================
--- pygccxml_dev/setup.py 2006-05-02 05:37:14 UTC (rev 56)
+++ pygccxml_dev/setup.py 2006-05-02 05:46:59 UTC (rev 57)
@@ -12,18 +12,19 @@
def generate_doc():
"""Generate the epydoc reference manual.
"""
- print "Generating epydoc files..."
- options = [ '--output="%s"'%os.path.join('docs', 'apidocs'),
- '--docformat=epytext',
- '--url=http://www.language-binding.net',
- '--name=pygccxml',
-# '--verbose',
- 'pygccxml']
- cmd_line = "epydoc " + ' '.join( options )
- print cmd_line
- os.system(cmd_line)
+ print "Generating epydoc files..."
+
+ from epydoc.docbuilder import build_doc_index
+ from epydoc.docwriter.html import HTMLWriter
+
+ docindex = build_doc_index(['pygccxml'])
+ html_writer = HTMLWriter( docindex
+ , prj_name='pygccxml'
+ , prj_url='http://www.language-binding.net'
+ , include_sourcecode=True )
+
+ html_writer.write( os.path.join('docs', 'apidocs') )
-
class doc_cmd(Command):
"""This is a new distutils command 'doc' to build the epydoc manual.
"""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|