summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-02 20:14:54 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-02 20:14:54 +0200
commit5975f86e017004a2391cba7d5fda7c6a8b24e2a5 (patch)
tree9118724c91df69c4daefb98a27b19fb4b797d2a9
parentcdb7e74be8bfa4bc16aa8d9231829095f8689033 (diff)
downloadpython-apt-5975f86e017004a2391cba7d5fda7c6a8b24e2a5.tar.gz
* setup.py: Always build documentation, even if python-gtk2 is not installed.
-rw-r--r--debian/changelog2
-rwxr-xr-xsetup.py6
2 files changed, 2 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog
index db1eef02..a7cf71a3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ python-apt (0.7.12.1) UNRELEASED; urgency=low
- Add missing argument to Version.__le__() and Version.__ge__()
* debian/control:
- Do not build-depend on python-gtk2 and python-vte on kfreebsd-*.
+ * setup.py:
+ - Always build documentation, even if python-gtk2 is not installed.
-- Julian Andres Klode <jak@debian.org> Fri, 31 Jul 2009 12:38:18 +0200
diff --git a/setup.py b/setup.py
index 2afd0708..9c9758c9 100755
--- a/setup.py
+++ b/setup.py
@@ -63,12 +63,6 @@ setup(name="python-apt",
if len(sys.argv) > 1 and sys.argv[1] == "build":
import sphinx
- try:
- import pygtk
- except ImportError:
- print >> sys.stderr, ('W: Not building documentation because python-'
- 'gtk2 is not available at the moment.')
- 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",