~ubuntu-branches/ubuntu/hardy/emesene/hardy-updates

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2008-03-29 21:48:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080329214829-spbg3uej5aozf2c1
Tags: 1.0-dist-1
* New upstream stable release from the emesene-1.0-dist upstream tarball
  (which contains setup.py and misc/ ).
* debian/patches/01_setup_py_update_get_orig_source.patch:
  - Removed, not needed anymore as we aren't using get-orig-source.
* debian/rules:
  - Remove get-orig-source rule, as from now on we will use upstream
    tarballs.
  - Remove python-patchsys include.
  - Run dh_icons and dh_desktop
  - Build the package with python2.5 since it FTBFS with python2.4 due to
    an issue with distutils.
* debian/copyright:
  - Updated.
* debian/watch:
  - Updated so that it reports 1.* as the newer versions.
* debian/emesene-launcher:
  - Update for the new Controller.py location.
* debian/control:
  - Build-Depend on python2.5 since the package is built with python2.5,
    as it fails with python2.4's distutils.
  - Wrap Build-Depends.
  - Build-Depend on debhelper >= 5.0.51~ for dh_icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python2.5
 
1
#!/usr/bin/python
2
2
 
3
3
from distutils.core import setup
 
4
import glob, os.path
4
5
 
5
6
from emesenecommon import APP_VERSION
6
7
 
 
8
# From apport's setup.py
 
9
mo_files = []
 
10
for filepath in glob.glob("po/*/LC_MESSAGES/*.mo"):
 
11
    lang = filepath[len("po/"):]
 
12
    targetpath = os.path.dirname(os.path.join("share/locale",lang))
 
13
    mo_files.append((targetpath, [filepath]))
 
14
 
 
15
 
7
16
setup(name         = 'emesene',
8
17
      version      = APP_VERSION,
9
18
      description  = 'MSN messenger client',
13
22
      license      = 'GNU GPL 2',
14
23
      requires     = ["gtk"],
15
24
      platforms    = ["Platform Independent"],
16
 
      packages     = ['', 'emesenelib', 'plugins_base', 'plugins_base.currentSong'],
17
 
      package_data = {'': ['conversation_themes/*/*', 'po/*/LC_MESSAGES/*.mo',
18
 
                                  'smilies/*/*', 'sound_themes/*/*', 'themes/*/*', 'hotmlog.htm']},
 
25
      packages     = ['', 'abstract', 'emesenelib', 'plugins_base', 'plugins_base.currentSong'],
 
26
      package_data = {'': ['conversation_themes/*/*', 'smilies/*/*',
 
27
                           'sound_themes/*/*', 'themes/*/*', 'hotmlog.htm']},
19
28
      scripts      = ['emesene'],
20
29
      data_files   = [('share/pixmaps', ['misc/emesene.png']),
21
30
                      ('share/icons/hicolor/scalable/apps', ['misc/emesene.svg']),
22
31
                      ('share/man/man1', ['misc/emesene.1']),
23
 
                      ('share/applications', ['misc/emesene.desktop'])]
 
32
                      ('share/applications', ['misc/emesene.desktop'])] + mo_files
24
33
      )