[pygccxml-commit] SF.net SVN: pygccxml: [16] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <mb...@us...> - 2006-04-28 16:18:59
|
Revision: 16 Author: mbaas Date: 2006-04-28 09:18:49 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=16&view=rev Log Message: ----------- Updated the setup script so that it can be used to create source archives. Added a MANIFEST.in file. Modified Paths: -------------- pyplusplus_dev/setup.py Added Paths: ----------- pyplusplus_dev/MANIFEST.in Property Changed: ---------------- pyplusplus_dev/ Property changes on: pyplusplus_dev ___________________________________________________________________ Name: svn:ignore + build dist MANIFEST *.pyc Added: pyplusplus_dev/MANIFEST.in =================================================================== --- pyplusplus_dev/MANIFEST.in (rev 0) +++ pyplusplus_dev/MANIFEST.in 2006-04-28 16:18:49 UTC (rev 16) @@ -0,0 +1,15 @@ +include LICENSE_1_0.txt +include MANIFEST.in +include unittests/*.py +include unittests/data/* +recursive-include docs/apidocs *.css +recursive-include docs/apidocs *.html +include docs/*.rest +include docs/*.png +include docs/*.html +include docs/comparisons/* +recursive-include docs/examples * +include docs/history/* +include docs/logos/* +include docs/tutorials/* +recursive-include examples/* Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-04-28 16:14:47 UTC (rev 15) +++ pyplusplus_dev/setup.py 2006-04-28 16:18:49 UTC (rev 16) @@ -3,25 +3,80 @@ # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -import os +import sys, os, os.path from distutils import sysconfig from distutils.core import setup - -setup( name="pyplusplus" - , description="pyplusplus is a framework of components for creating C++ code generator for boost.python library" - , author="Roman Yakovenko" - , author_email="rom...@gm..." - , url='http://pyplusplus.sourceforge.net' - , scripts= map( lambda script_name: os.path.join( 'pyplusplus', 'scripts', script_name ) - , os.listdir( os.path.join( 'pyplusplus', 'scripts' ) ) ) - , packages=[ 'pyplusplus' - , 'pyplusplus.gui' - , 'pyplusplus.file_writers' - , 'pyplusplus.code_creators' - , 'pyplusplus.module_creator' - , 'pyplusplus.code_repository' - , 'pyplusplus.decl_wrappers' - , 'pyplusplus.module_builder' - , 'pyplusplus.utils' - , 'pyplusplus._logging_'] +from distutils.cmd import Command + +try: + sys.path.append("../pygccxml_dev") + import pygccxml + pygccxml_available = True +except ImportError: + pygccxml_available = False + + +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 ) + print cmd_line + os.system(cmd_line) + + +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 = "pyplusplus", + version = "0.7.1", + description="pyplusplus is a framework of components for creating C++ code generator for boost.python library", + author="Roman Yakovenko", + author_email="rom...@gm...", + url='http://www.language-binding.net/pyplusplus/pyplusplus.html', + scripts = ["scripts/pyplusplus_gui", + "scripts/pyplusplus_gui.pyw"], + packages=[ 'pyplusplus', + 'pyplusplus.gui', + 'pyplusplus.file_writers', + 'pyplusplus.code_creators', + 'pyplusplus.module_creator', + 'pyplusplus.code_repository', + 'pyplusplus.decl_wrappers', + 'pyplusplus.module_builder', + 'pyplusplus.utils', + 'pyplusplus._logging_'], + cmdclass = {"doc" : doc_cmd} ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |