~nataliabidart/ubuntuone-control-panel/webclient-shutdowns

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart, natalia.bidart at canonical
  • Date: 2011-01-27 22:01:48 UTC
  • mfrom: (43.2.4 me-menu)
  • Revision ID: tarmac-20110127220148-0e3vu5k0c48pb9v4
Tags: release-0_8_1
Added support to install u1cp-gtk in the messaging menu (LP: #708003).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
POT_FILE = 'po/ubuntuone-control-panel.pot'
34
34
SERVICE_FILE = 'com.ubuntuone.controlpanel.service'
 
35
MESSAGE_ENTRY = 'ubuntuone-control-panel'
35
36
CONSTANTS = 'ubuntuone/controlpanel/constants.py'
36
37
 
37
 
CLEANFILES = [SERVICE_FILE, CONSTANTS, POT_FILE, 'MANIFEST']
 
38
CLEANFILES = [SERVICE_FILE, MESSAGE_ENTRY, CONSTANTS, POT_FILE, 'MANIFEST']
38
39
 
39
40
 
40
41
def replace_prefix(prefix):
41
42
    """Replace every '@prefix@' with prefix within 'filename' content."""
42
43
    # replace .service file, DATA_DIR constant
43
 
    for filename in (SERVICE_FILE, CONSTANTS):
 
44
    for filename in (SERVICE_FILE, MESSAGE_ENTRY, CONSTANTS):
44
45
        with open(filename + '.in') as in_file:
45
46
            content = in_file.read()
46
47
            with open(filename, 'w') as out_file:
88
89
        ('lib/ubuntuone-control-panel',
89
90
         ['bin/ubuntuone-control-panel-backend']),
90
91
        ('share/dbus-1/services/', [SERVICE_FILE]),
 
92
        ('share/indicators/messages/applications/', [MESSAGE_ENTRY]),
91
93
    ],
92
94
    cmdclass={
93
95
        'install': ControlPanelInstall,