~barry/ubuntu/maverick/computer-janitor/bug-665740

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# setup.py - distutils module for Computer Janitor
# Copyright (C) 2008  Canonical, Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


from distutils.core import setup
from DistUtilsExtra.command import *
import os


disabled = ["add_nfs_common_plugin.py",
            "check_admin_group_plugin.py",
	    "fstab_plugin.py",
            "landscape_stub_plugin.py"]

def plugins():
    return [os.path.join('plugins', name)
            for name in os.listdir('plugins')
            if name.endswith('_plugin.py') and name not in disabled]


setup(name='computer-janitor',
      version="1.12",
      description="Clean up a system so it's more like a freshly "
                  "installed one",
      author='Lars Wirzenius',
      author_email='lars@ubuntu.com',
      packages=['computerjanitorapp'],
      scripts=['computer-janitor', 'computer-janitor-gtk'],
      data_files=[('share/man/man8', ['computer-janitor.8', 
                                      'computer-janitor-gtk.8']),
                  ('share/computerjanitor/plugins', plugins()),
                  ('share/computer-janitor', ['data/ComputerJanitor.ui']),
                  ('share/applications', 
                   ['data/computer-janitor-gtk.desktop']),
                  ('share/computer-janitor', 
                   ['data/computerjanitor-256x256.png']),
                  ('share/icons/hicolor/24x24/apps',
                   ['data/computerjanitor-24x24.png'])],
      cmdclass = { "build" : build_extra.build_extra,
                   "build_i18n" :  build_i18n.build_i18n,
                   "build_help" :  build_help.build_help,
                   "build_icons" :  build_icons.build_icons }
     )