summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-03-10 16:00:09 +0100
committerJulian Andres Klode <jak@debian.org>2010-03-10 16:00:09 +0100
commit73906071bf00e83910b4aaf9050cd3f567dc7cb7 (patch)
treed12318e4b8d6aaad835949633caf4a57aa72cfd3
parent72e6ef284a460c497eec3964b0eeddbdf24a4b5a (diff)
downloadpython-apt-73906071bf00e83910b4aaf9050cd3f567dc7cb7.tar.gz
Build documentation only once on the default Python version.
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules4
-rw-r--r--setup.py2
3 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index b0e6657b..b2c1a90e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
python-apt (0.7.93.4) unstable; urgency=low
* Move documentation into python-apt-doc (Closes: #572617)
+ * Build documentation only once on the default Python version.
* python/acquire-item.cc:
- Add AcquireItem.partialsize member.
* python/apt_pkgmodule.cc:
diff --git a/debian/rules b/debian/rules
index 3711080c..df775322 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,10 @@ export CFLAGS=-Wno-write-strings -DCOMPAT_0_7
%:
dh --with python-central $@
+override_dh_auto_build:
+ dh_auto_build
+ python setup.py build_sphinx
+
override_dh_installdocs:
dh_installdocs
ln -sf ../../../../javascript/jquery/jquery.js \
diff --git a/setup.py b/setup.py
index b285fcee..9c6eda60 100644
--- a/setup.py
+++ b/setup.py
@@ -14,8 +14,6 @@ try:
cmdclass['build'] = build_extra.build_extra
cmdclass['build_i18n'] = build_i18n.build_i18n
cmdclass['clean'] = clean_build_tree
- build_extra.build_extra.sub_commands.append(("build_sphinx",
- lambda x: 'build_sphinx' in cmdclass))
except ImportError:
print('W: [python%s] DistUtilsExtra import error.' % sys.version[:3])