~ubuntu-branches/ubuntu/raring/apt-xapian-index/raring-proposed

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2010-05-24 17:31:08 UTC
  • mfrom: (5.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100524173108-3vvrnppxh6qty33b
Tags: 0.37
Move #DEBHELPER# at the beginning of postinst, otherwise
update-python-modules -p doesn't seem to always work. Closes: #581811

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import sys
 
4
import os.path
 
5
from distutils.core import setup
 
6
 
 
7
for line in open(os.path.join(os.path.dirname(sys.argv[0]),'update-apt-xapian-index')):
 
8
    if line.startswith('VERSION='):
 
9
        version = eval(line.split('=')[-1])
 
10
 
 
11
setup(name='apt-xapian-index',
 
12
      version=version,
 
13
      description='Xapian index of Debian packages',
 
14
#      long_description=''
 
15
      author=['Enrico Zini'],
 
16
      author_email=['enrico@debian.org'],
 
17
      url='http://www.enricozini.org/sw/apt-xapian-index/',
 
18
      install_requires = [
 
19
          "debian", "apt", "xapian",
 
20
      ],
 
21
      license='GPL',
 
22
      platforms='any',
 
23
      packages=['axi'],
 
24
#     py_modules=[''],
 
25
      scripts=['update-apt-xapian-index', 'axi-cache'],
 
26
     )