A thousand cuts..
[jamaendo] / setup.py
1 #!/usr/bin/env python\r
2 #\r
3 # This file is part of Jamaendo.\r
4 # Copyright (c) 2010, Kristoffer Gronlund\r
5 # All rights reserved.\r
6 #\r
7 # Redistribution and use in source and binary forms, with or without\r
8 # modification, are permitted provided that the following conditions are met:\r
9 #     * Redistributions of source code must retain the above copyright\r
10 #       notice, this list of conditions and the following disclaimer.\r
11 #     * Redistributions in binary form must reproduce the above copyright\r
12 #       notice, this list of conditions and the following disclaimer in the\r
13 #       documentation and/or other materials provided with the distribution.\r
14 #     * Neither the name of Jamaendo nor the\r
15 #       names of its contributors may be used to endorse or promote products\r
16 #       derived from this software without specific prior written permission.\r
17 #\r
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\r
19 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
20 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
21 # DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\r
22 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
23 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
24 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
25 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
27 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
28 \r
29 from setuptools import setup, find_packages\r
30 from glob import glob\r
31 import os\r
32 import sys\r
33 \r
34 data_files = [\r
35     ('share/jamaendo', glob('data/icon_*.png') + ['data/bg.png', 'data/album.png']),\r
36     ('share/applications/hildon', ['data/jamaendo.desktop']),\r
37     ('share/icons/hicolor/26x26/apps', ['data/26x26/jamaendo.png']),\r
38     ('share/icons/hicolor/40x40/apps', ['data/40x40/jamaendo.png']),\r
39     ('share/icons/hicolor/scalable/apps', ['data/64x64/jamaendo.png']),\r
40 ]\r
41 \r
42 # search for translations and repare to install\r
43 #translation_files = []\r
44 #for mofile in glob('data/locale/*/LC_MESSAGES/jamaendo.mo'):\r
45 #    modir = os.path.dirname(mofile).replace('data', 'share')\r
46 #    translation_files.append((modir, [mofile]))\r
47 \r
48 import sys\r
49 setup(\r
50     name = "jamaendo",\r
51     version = '0.1',\r
52     author = "Kristoffer Gronlund",\r
53     author_email = "kristoffer.gronlund@purplescout.se",\r
54     url = "http://github.com/krig/jamaendo",\r
55     packages = ['jamaendo', 'jamaui'],\r
56     zip_safe=False,\r
57     scripts = ['scripts/jamaendo'],\r
58     data_files = data_files# + translation_files,\r
59     )\r
60 \r