File: setup.py

package info (click to toggle)
gnome-app-install 0.5.5.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,364 kB
  • ctags: 448
  • sloc: python: 4,321; xml: 940; makefile: 42; sh: 9
file content (38 lines) | stat: -rwxr-xr-x 1,128 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python

from setuptools import setup
import os.path
import re

if __name__ == "__main__":

    # look/set what version we have
    changelog = "debian/changelog"
    if os.path.exists(changelog):
        head=open(changelog).readline()
        match = re.compile(".*\((.*)\).*").match(head)
        if match:
            version = match.group(1)
            f=open("AppInstall/Version.py","w")
            f.write("VERSION=\"%s\"\n" % version)
            f.close()

    GETTEXT_NAME="gnome-app-install"

    setup(name='gnome-app-install',
          version=version,
          packages=['AppInstall',
                    'AppInstall.distros',
                    'AppInstall.widgets'],
          scripts=['gnome-app-install'],
          data_files=[('share/gnome-app-install/',
                       ["data/gnome-app-install.glade",
                       ]
                      ),
                      ('sbin',
                       ["update-app-install",
                        'gnome-app-install-helper']
                      )
                     ],
          test_suite="nose.collector",
          )