~ubuntu-branches/ubuntu/raring/pymodbus/raring

« back to all changes in this revision

Viewing changes to doc/api/pydoctor/build.py

  • Committer: Package Import Robot
  • Author(s): W. Martin Borgert
  • Date: 2011-10-26 07:26:28 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20111026072628-fvzyi6tnb8iipomp
Tags: 0.9.0+r175-1
* Update from trunk to get a number of upstream fixes.
* Removed examples/tools/ (not present in previous version
  anyway) from source because there are different licenses
  involved. Needs clarification.
* Dont't install unit tests.
* Debian patches not necessary anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
'''
 
3
Pydoctor API Runner
 
4
---------------------
 
5
 
 
6
Using pkg_resources, we attempt to see if pydoctor is installed,
 
7
if so, we use its cli program to compile the documents
 
8
'''
 
9
try:
 
10
    import sys, os, shutil
 
11
    import pkg_resources
 
12
    pkg_resources.require("pydoctor")
 
13
 
 
14
    from pydoctor.driver import main
 
15
    sys.argv = '''pydoctor.py --quiet
 
16
        --project-name=Pymodbus
 
17
        --project-url=http://code.google.com/p/pymodbus/
 
18
        --add-package=../../../pymodbus
 
19
        --html-output=html
 
20
        --html-write-function-pages --make-html'''.split()
 
21
 
 
22
    print "Building Pydoctor API Documentation"
 
23
    main(sys.argv[1:])
 
24
 
 
25
    if os.path.exists('../../../build'):
 
26
        shutil.move("html", "../../../build/pydoctor")
 
27
except: print "Pydoctor unavailable...not building"