diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-01 17:11:16 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-01 17:11:16 +0200 |
| commit | 192a186f6613f02e0fcef12da11412ec6001ed8c (patch) | |
| tree | b418536ec04f52d8a73d610e8ca04733dd06a288 /setup.py | |
| parent | 312b5ca7acbe74bc73acc2b710628ea2a8ad83cc (diff) | |
| download | python-apt-192a186f6613f02e0fcef12da11412ec6001ed8c.tar.gz | |
* Fix documentation building
- doc/source/conf.py: Only include directories for current python version.
- debian/control: Build-Depend on python-gtk2, python-vte.
- setup.py: If pygtk can not be imported, do not build the documentation.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -75,6 +75,11 @@ setup(name="python-apt", if len(sys.argv) > 1 and sys.argv[1] == "build": import sphinx + try: + import pygtk + except ImportError: + print >> sys.stderr, 'E: python-gtk2 is required to build documentation.' + sys.exit(0) sphinx.main(["sphinx", "-b", "html", "-d", "build/doc/doctrees", os.path.abspath("doc/source"), "build/doc/html"]) sphinx.main(["sphinx", "-b", "text", "-d", "build/doc/doctrees", |
