diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-04-16 16:51:34 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-04-16 16:51:34 +0200 |
| commit | bb13dd4c791468172047680daf7d90a78401cbeb (patch) | |
| tree | f7cc01d5bb231fbc97bad75fab6a02dee5a4e12f /setup.py | |
| parent | 94da5ef1e2d927649794382b38f6bd62bb1d4ae4 (diff) | |
| download | python-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-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"]) |
