Fixed some bugs in showalbum
[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 distutils.core import setup\r
30 from glob import glob\r
31 \r
32 data_files = [\r
33     ('/opt/jamaendo', glob('data/icon_*.png') + ['data/bg.png', 'data/album.png']),\r
34     ('share/applications/hildon', ['data/jamaendo.desktop']),\r
35     ('share/icons/hicolor/26x26/apps', ['data/26x26/jamaendo.png']),\r
36     ('share/icons/hicolor/40x40/apps', ['data/40x40/jamaendo.png']),\r
37     ('share/icons/hicolor/scalable/apps', ['data/64x64/jamaendo.png']),\r
38 ]\r
39 \r
40 # search for translations and repare to install\r
41 #translation_files = []\r
42 #for mofile in glob('data/locale/*/LC_MESSAGES/jamaendo.mo'):\r
43 #    modir = os.path.dirname(mofile).replace('data', 'share')\r
44 #    translation_files.append((modir, [mofile]))\r
45 \r
46 setup(\r
47     name = "jamaendo",\r
48     version = '0.2',\r
49     author = "Kristoffer Gronlund",\r
50     author_email = "kristoffer.gronlund@purplescout.se",\r
51     url = "http://jamaendo.garage.maemo.org/",\r
52     packages = ['jamaendo', 'jamaui'],\r
53     scripts = ['scripts/jamaendo'],\r
54     data_files = data_files# + translation_files,\r
55     )\r
56 \r