Thread: [pygccxml-commit] SF.net SVN: pygccxml: [17] pyplusplus_dev/setup.py
Brought to you by:
mbaas,
roman_yakovenko
From: <mb...@us...> - 2006-04-28 16:31:29
|
Revision: 17 Author: mbaas Date: 2006-04-28 09:31:23 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=17&view=rev Log Message: ----------- Update PYTHONPATH before calling epydoc. This allows generating the documentation even when pygccxml is not 'officially' installed but resides in ../pygccxml_dev Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-04-28 16:18:49 UTC (rev 16) +++ pyplusplus_dev/setup.py 2006-04-28 16:31:23 UTC (rev 17) @@ -14,8 +14,28 @@ pygccxml_available = True except ImportError: pygccxml_available = False - + +def modifyPythonPath(): + """Update PYTHONPATH so that is refers to pygccxml_dev. + + The updated path is required for generating the documentation when + pygccxml is not 'officially' installed. + """ + if not os.environ.has_key( 'PYTHONPATH' ): + os.environ['PYTHONPATH'] = '' + if sys.platform == 'win32': + environment_var_delimiter = ';' + else: + environment_var_delimiter = ':' + + pygccxml_path = os.path.normpath(os.path.join(os.getcwd(), "..", "pygccxml_dev")) + os.environ[ 'PYTHONPATH' ] = os.environ[ 'PYTHONPATH' ] \ + + environment_var_delimiter \ + + pygccxml_path + print "Setting PYTHONPATH to", os.environ["PYTHONPATH"] + + def generate_doc(): """Generate the epydoc reference manual. """ @@ -31,6 +51,7 @@ # '--verbose', 'pyplusplus'] cmd_line = "epydoc " + ' '.join( options ) + modifyPythonPath() print cmd_line os.system(cmd_line) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-05-02 04:52:59
|
Revision: 40 Author: roman_yakovenko Date: 2006-05-01 21:52:52 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=40&view=rev Log Message: ----------- updating setup.py to use epydoc api Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-05-02 04:35:28 UTC (rev 39) +++ pyplusplus_dev/setup.py 2006-05-02 04:52:52 UTC (rev 40) @@ -16,7 +16,7 @@ pygccxml_available = False -def modifyPythonPath(): +def add_pygccxml_to_PYTHONPATH(): """Update PYTHONPATH so that is refers to pygccxml_dev. The updated path is required for generating the documentation when @@ -36,25 +36,28 @@ print "Setting PYTHONPATH to", os.environ["PYTHONPATH"] -def generate_doc(): +def generate_doc(): """Generate the epydoc reference manual. """ if not pygccxml_available: print "Please install pygccxml before generating the docs." sys.exit() - - print "Generating epydoc files..." - options = [ '--output="%s"'%os.path.join('docs', 'apidocs'), - '--docformat=epytext', - '--url=http://www.language-binding.net', - '--name=pyplusplus', -# '--verbose', - 'pyplusplus'] - cmd_line = "epydoc " + ' '.join( options ) - modifyPythonPath() - print cmd_line - os.system(cmd_line) - + + add_pygccxml_to_PYTHONPATH() + + from epydoc.docbuilder import build_doc_index + from epydoc.docwriter.html import HTMLWriter + + print "Generating epydoc files..." + + docindex = build_doc_index(['pyplusplus', 'pygccxml']) + html_writer = HTMLWriter( docindex + , prj_name='pyplusplus' + , 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. |
From: <mb...@us...> - 2006-08-31 10:01:34
|
Revision: 501 http://svn.sourceforge.net/pygccxml/?rev=501&view=rev Author: mbaas Date: 2006-08-31 03:01:30 -0700 (Thu, 31 Aug 2006) Log Message: ----------- Added an epydoc logger so that epydoc warnings/errors are not ignored while the docs are generated. Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-08-31 02:21:55 UTC (rev 500) +++ pyplusplus_dev/setup.py 2006-08-31 10:01:30 UTC (rev 501) @@ -45,11 +45,15 @@ add_pygccxml_to_PYTHONPATH() + import epydoc from epydoc.docbuilder import build_doc_index from epydoc.docwriter.html import HTMLWriter print "Generating epydoc files..." + # Register a logger object so that warnings/errors are shown + epydoc.log.register_logger(epydoc.log.SimpleLogger()) + docindex = build_doc_index(['pyplusplus', 'pygccxml']) html_writer = HTMLWriter( docindex , prj_name='Py++' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-11-18 19:16:48
|
Revision: 731 http://svn.sourceforge.net/pygccxml/?rev=731&view=rev Author: roman_yakovenko Date: 2006-11-18 11:16:48 -0800 (Sat, 18 Nov 2006) Log Message: ----------- adding source code to generated documentation Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-11-18 19:15:50 UTC (rev 730) +++ pyplusplus_dev/setup.py 2006-11-18 19:16:48 UTC (rev 731) @@ -58,7 +58,6 @@ html_writer = HTMLWriter( docindex , prj_name='Py++' , prj_url='http://www.language-binding.net' - , include_source_code=False #This will decrease the size of generated documentation , show_private=False , show_frames=False ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rom...@us...> - 2006-12-06 13:29:41
|
Revision: 783 http://svn.sourceforge.net/pygccxml/?rev=783&view=rev Author: roman_yakovenko Date: 2006-12-06 05:29:40 -0800 (Wed, 06 Dec 2006) Log Message: ----------- adding missing package Modified Paths: -------------- pyplusplus_dev/setup.py Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-12-06 10:24:40 UTC (rev 782) +++ pyplusplus_dev/setup.py 2006-12-06 13:29:40 UTC (rev 783) @@ -107,6 +107,7 @@ 'pyplusplus.module_builder', 'pyplusplus.utils', 'pyplusplus.function_transformers', - 'pyplusplus._logging_'], + 'pyplusplus._logging_', + 'pyplusplus.messages'], cmdclass = {"doc" : doc_cmd} ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |