summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-01 17:11:16 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-01 17:11:16 +0200
commit192a186f6613f02e0fcef12da11412ec6001ed8c (patch)
treeb418536ec04f52d8a73d610e8ca04733dd06a288 /doc/source
parent312b5ca7acbe74bc73acc2b710628ea2a8ad83cc (diff)
downloadpython-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 'doc/source')
-rw-r--r--doc/source/conf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 17fe6a23..40154a6f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -23,9 +23,13 @@ import sys
# absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../..'))
+
+# Find the path to the built apt_pkg and apt_inst extensions
if os.path.exists("../../build"):
+ version = '.'.join(str(x) for x in sys.version_info[:2])
for dirname in os.listdir('../../build'):
- sys.path.insert(0, os.path.abspath('../../build/' + dirname))
+ if version in dirname:
+ sys.path.insert(0, os.path.abspath('../../build/' + dirname))
# General configuration
# ---------------------