diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-10 17:51:01 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-10 17:51:01 +0200 |
| commit | f4ad2eba9cb8a84903691d6f31b5b90e07fb5ae3 (patch) | |
| tree | 87a1e23e31b4f84c4821015b9b5a60ddbca6fc15 /setup.py | |
| parent | 75eeb9186bd254f60964d2ec9e70c45ecc92a247 (diff) | |
| download | python-apt-f4ad2eba9cb8a84903691d6f31b5b90e07fb5ae3.tar.gz | |
Fix FTBFS with python-debian (>= 0.1.13) on Python 2.4 by not using it to
get a version number in setup.py (Closes: #523473)
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -10,18 +10,6 @@ from distutils.sysconfig import parse_makefile from DistUtilsExtra.command import build_extra, build_i18n -class FakeDebianSupportModule(object): - """Work around the python-apt dependency of debian_support.""" - - class Version(object): - """Empty class.""" - -sys.modules['debian_bundle.debian_support'] = FakeDebianSupportModule - -from debian_bundle.changelog import Changelog - - - # The apt_pkg module files = map(lambda source: "python/"+source, parse_makefile("python/makefile")["APT_PKG_SRC"].split()) @@ -58,7 +46,6 @@ if len(sys.argv) > 1 and sys.argv[1] == "clean" and '-a' in sys.argv: print "Not removing", dirname, "because it does not exist" setup(name="python-apt", - version=Changelog(open('debian/changelog')).full_version, description="Python bindings for APT", author="APT Development Team", author_email="deity@lists.debian.org", @@ -78,7 +65,8 @@ if len(sys.argv) > 1 and sys.argv[1] == "build": try: import pygtk except ImportError: - print >> sys.stderr, 'E: python-gtk2 is required to build documentation.' + 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"]) |
