summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-04-16 16:51:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-04-16 16:51:34 +0200
commitbb13dd4c791468172047680daf7d90a78401cbeb (patch)
treef7cc01d5bb231fbc97bad75fab6a02dee5a4e12f /setup.py
parent94da5ef1e2d927649794382b38f6bd62bb1d4ae4 (diff)
downloadpython-apt-bb13dd4c791468172047680daf7d90a78401cbeb.tar.gz
* Build for python2.4 as well. LP: #354812.
* setup.py: - only use sphinx for python2.5 or later
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6a22734d..1783d4cc 100755
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,8 @@ setup(name="python-apt",
license = 'GNU GPL',
platforms = 'posix')
-if len(sys.argv) > 1 and sys.argv[1] == "build":
+if (len(sys.argv) > 1 and sys.argv[1] == "build" and
+ sys.version_info[0] >= 2 and sys.version_info[1] >= 5):
import sphinx
sphinx.main(["sphinx", "-b", "html", "-d", "build/doc/doctrees",
os.path.abspath("doc/source"), "build/doc/html"])