From bb13dd4c791468172047680daf7d90a78401cbeb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 16 Apr 2009 16:51:34 +0200 Subject: * Build for python2.4 as well. LP: #354812. * setup.py: - only use sphinx for python2.5 or later --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') 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"]) -- cgit v1.2.3