diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-05-05 11:09:26 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-05-05 11:09:26 +0200 |
| commit | 51c60cb3447247188bb8bf5c82b53e5199878b36 (patch) | |
| tree | 5f3d6ff39d06199a0423913284149fb6e59436d5 /setup.py | |
| parent | b08e026fea9ed453d2cbaaa402fe1bd17c6242dd (diff) | |
| parent | 23d29169c30b2f05a0c2943832a7cf7288ff5802 (diff) | |
| download | python-apt-51c60cb3447247188bb8bf5c82b53e5199878b36.tar.gz | |
merge from the debian-unstable tree
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,14 +1,14 @@ #! /usr/bin/env python # $Id: setup.py,v 1.2 2002/01/08 07:13:21 jgg Exp $ - -from distutils.core import setup, Extension -from distutils.sysconfig import parse_makefile -from DistUtilsExtra.command import build_extra, build_i18n import glob import os import shutil import sys +from distutils.core import setup, Extension +from distutils.sysconfig import parse_makefile +from DistUtilsExtra.command import build_extra, build_i18n + # The apt_pkg module files = map(lambda source: "python/"+source, @@ -46,12 +46,12 @@ 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="0.7.9", description="Python bindings for APT", + version=os.environ.get('DEBVER'), author="APT Development Team", author_email="deity@lists.debian.org", ext_modules=[apt_pkg, apt_inst], - packages=['apt', 'apt.gtk', 'aptsources'], + packages=['apt', 'apt.progress', 'aptsources'], data_files = [('share/python-apt/templates', glob.glob('build/data/templates/*.info')), ('share/python-apt/templates', @@ -63,6 +63,12 @@ setup(name="python-apt", if len(sys.argv) > 1 and sys.argv[1] == "build": import sphinx + try: + import pygtk + except ImportError: + 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"]) sphinx.main(["sphinx", "-b", "text", "-d", "build/doc/doctrees", |
