/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Daniel Schierbeck
  • Date: 2007-12-06 23:37:06 UTC
  • mto: This revision was merged to the branch mainline in revision 417.
  • Revision ID: daniel.schierbeck@gmail.com-20071206233706-eeinks66w86r3gfm
Fixed bug in gmissing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
class InstallData(install_data):
37
37
    def run(self):
38
38
        self.data_files.extend(self._compile_po_files())
39
 
        self.data_files.extend(self._nautilus_plugin())
 
39
        # Disable for now - performance issues
 
40
        #self.data_files.extend(self._nautilus_plugin())
40
41
        install_data.run(self)
41
 
 
42
 
        try:
43
 
            subprocess.check_call('gtk-update-icon-cache -f -t /usr/share/icons/hicolor')
44
 
        except:
45
 
            pass
46
 
 
 
42
    
47
43
    def _compile_po_files(self):
48
44
        data_files = []
49
45
        
79
75
        files = []
80
76
        if sys.platform[:5] == 'linux':
81
77
            cmd = os.popen('pkg-config --variable=pythondir nautilus-python', 'r')
82
 
            res = cmd.readline().strip()
 
78
            res = cmd.readline()
83
79
            ret = cmd.close()
84
80
            
85
81
            if ret is None:
91
87
 
92
88
setup(
93
89
    name = "bzr-gtk",
94
 
    version = "0.96.0",
 
90
    version = "0.93.0",
95
91
    maintainer = "Jelmer Vernooij",
96
92
    maintainer_email = "jelmer@samba.org",
97
93
    description = "GTK+ Frontends for various Bazaar commands",
98
 
    license = "GNU GPL v2 or later",
99
 
    scripts=['olive-gtk', 'bzr-handle-patch', 'bzr-notify'],
100
 
    homepage = "http://bazaar-vcs.org/BzrGtk",
 
94
    license = "GNU GPL v2",
 
95
    scripts=['olive-gtk'],
101
96
    package_dir = {
102
97
        "bzrlib.plugins.gtk": ".",
103
98
        "bzrlib.plugins.gtk.viz": "viz", 
104
99
        "bzrlib.plugins.gtk.annotate": "annotate",
105
100
        "bzrlib.plugins.gtk.olive": "olive",
106
 
        "bzrlib.plugins.gtk.tests": "tests",
107
 
        "bzrlib.plugins.gtk.branchview": "branchview",
108
 
        "bzrlib.plugins.gtk.preferences": "preferences",
 
101
        "bzrlib.plugins.gtk.tests": "tests"
109
102
        },
110
103
    packages = [
 
104
        "olive",
111
105
        "bzrlib.plugins.gtk",
112
106
        "bzrlib.plugins.gtk.viz",
113
107
        "bzrlib.plugins.gtk.annotate",
114
108
        "bzrlib.plugins.gtk.olive",
115
 
        "bzrlib.plugins.gtk.tests",
116
 
        "bzrlib.plugins.gtk.branchview",
117
 
        "bzrlib.plugins.gtk.preferences",
 
109
        "bzrlib.plugins.gtk.tests"
118
110
        ],
119
 
    data_files=[('share/olive', ['cmenu.ui',
 
111
    data_files=[('share/olive', ['olive.glade',
 
112
                                 'cmenu.ui',
120
113
                                ]),
121
 
                ('share/bzr-gtk/icons', ['icons/commit.png',
 
114
                ('share/olive/icons', ['icons/commit.png',
122
115
                                 'icons/commit16.png',
123
116
                                 'icons/diff.png',
124
117
                                 'icons/diff16.png',
129
122
                                 'icons/push.png',
130
123
                                 'icons/push16.png',
131
124
                                 'icons/refresh.png',
132
 
                                 'icons/olive-gtk.png',
133
 
                                 'icons/oliveicon2.png',
134
 
                                 'icons/sign-bad.png',
135
 
                                 'icons/sign-ok.png',
136
 
                                 'icons/sign.png',
137
 
                                 'icons/sign-unknown.png',
138
 
                                 'icons/tag-16.png',
139
 
                                 'icons/bug.png',
140
 
                                 'icons/bzr-icon-64.png']),
 
125
                                 'icons/oliveicon2.png']),
141
126
                ('share/applications', ['olive-gtk.desktop',
142
127
                                        'bazaar-properties.desktop',
143
 
                                        'bzr-handle-patch.desktop',
144
128
                                        'bzr-notify.desktop']),
145
 
                ('share/application-registry', ['bzr-gtk.applications']),
146
 
                ('share/pixmaps', ['icons/olive-gtk.png', 'icons/bzr-icon-64.png']),
147
 
                ('share/icons/hicolor/scalable/emblems', 
148
 
                    ['icons/emblem-bzr-added.svg', 
149
 
                        'icons/emblem-bzr-conflict.svg', 
150
 
                        'icons/emblem-bzr-controlled.svg', 
151
 
                        'icons/emblem-bzr-modified.svg',
152
 
                        'icons/emblem-bzr-removed.svg'])
 
129
                ('share/pixmaps', ['icons/olive-gtk.png'])
153
130
               ],
154
131
    cmdclass={'install_data': InstallData,
155
132
              'check': Check}