|
1 | | -#!/usr/bin/env python |
2 | | -# Copyright 2004-2008 Roman Yakovenko. |
3 | | -# Distributed under the Boost Software License, Version 1.0. (See |
4 | | -# accompanying file LICENSE_1_0.txt or copy at |
5 | | -# http://www.boost.org/LICENSE_1_0.txt) |
6 | | - |
7 | | -import sys, os, os.path |
8 | | -from distutils import sysconfig |
9 | | -from distutils.core import setup |
10 | | -from distutils.cmd import Command |
11 | | - |
12 | | -def generate_doc(): |
13 | | - """Generate the epydoc reference manual. |
14 | | - """ |
15 | | - print "Generating epydoc files..." |
16 | | - |
17 | | - from epydoc.docbuilder import build_doc_index |
18 | | - from epydoc.docwriter.html import HTMLWriter |
19 | | - |
20 | | - docindex = build_doc_index(['pygccxml']) |
21 | | - html_writer = HTMLWriter( docindex |
22 | | - , prj_name='pygccxml' |
23 | | - , prj_url='http://www.language-binding.net' |
24 | | - , show_private=False |
25 | | - , show_frames=False) |
26 | | - |
27 | | - html_writer.write( os.path.join('docs', 'apidocs') ) |
28 | | - |
29 | | -class doc_cmd(Command): |
30 | | - """This is a new distutils command 'doc' to build the epydoc manual. |
31 | | - """ |
32 | | - |
33 | | - description = 'build the API reference using epydoc' |
34 | | - user_options = [('no-doc', None, "don't run epydoc")] |
35 | | - boolean_options = ['no-doc'] |
36 | | - |
37 | | - def initialize_options (self): |
38 | | - self.no_doc = 0 |
39 | | - |
40 | | - def finalize_options (self): |
41 | | - pass |
42 | | - |
43 | | - def run(self): |
44 | | - if self.no_doc: |
45 | | - return |
46 | | - generate_doc() |
47 | | - |
48 | | - |
49 | | -# Generate the doc when a source distribution is created |
50 | | -if sys.argv[-1]=="sdist": |
51 | | - generate_doc() |
52 | | - |
53 | | - |
54 | | -setup( name = "pygccxml", |
55 | | - version = "1.0.0", |
56 | | - description = "GCC-XML generated file reader", |
57 | | - author = "Roman Yakovenko", |
58 | | - author_email = "[email protected]", |
59 | | - url = 'http://www.language-binding.net/pygccxml/pygccxml.html', |
60 | | - packages = [ 'pygccxml', |
61 | | - 'pygccxml.declarations', |
62 | | - 'pygccxml.parser', |
63 | | - 'pygccxml.binary_parsers', |
64 | | - #~ deprecated |
65 | | - #~ 'pygccxml.binary_parsers.bsc', |
66 | | - #~ 'pygccxml.binary_parsers.mspdb', |
67 | | - 'pygccxml.utils' ], |
68 | | - cmdclass = {"doc" : doc_cmd} |
69 | | -) |
| 1 | +#!/usr/bin/env python |
| 2 | +# Copyright 2004-2008 Roman Yakovenko. |
| 3 | +# Distributed under the Boost Software License, Version 1.0. (See |
| 4 | +# accompanying file LICENSE_1_0.txt or copy at |
| 5 | +# http://www.boost.org/LICENSE_1_0.txt) |
| 6 | + |
| 7 | +from distutils.core import setup |
| 8 | + |
| 9 | +setup( name = "pygccxml", |
| 10 | + version = "1.1.0", |
| 11 | + description = "GCC-XML generated file reader", |
| 12 | + author = "Roman Yakovenko", |
| 13 | + author_email = "[email protected]", |
| 14 | + url = 'http://www.language-binding.net/pygccxml/pygccxml.html', |
| 15 | + packages = [ 'pygccxml', |
| 16 | + 'pygccxml.declarations', |
| 17 | + 'pygccxml.parser', |
| 18 | + 'pygccxml.binary_parsers', |
| 19 | + 'pygccxml.utils' ] |
| 20 | +) |
0 commit comments