1 #!/usr/bin/env python
\r
3 # This file is part of Jamaendo.
\r
4 # Copyright (c) 2010, Kristoffer Gronlund
\r
5 # All rights reserved.
\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
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
29 from setuptools import setup, find_packages
\r
30 from glob import glob
\r
34 running_on_tablet = os.path.exists('/etc/osso_software_version')
\r
36 applications_dir = 'share/applications'
\r
37 if running_on_tablet:
\r
38 applications_dir += '/hildon'
\r
41 ('share/jamaendo', glob('data/*.png')),
\r
42 (applications_dir, ['data/jamaendo.desktop']),
\r
43 ('share/icons/hicolor/scalable/apps', ['data/jamaendo.png']),
\r
50 author = "Kristoffer Gronlund",
\r
51 author_email = "kristoffer.gronlund@purplescout.se",
\r
52 url = "http://github.com/krig/jamaendo",
\r
53 packages = find_packages(exclude=['tests']),
\r
55 test_suite='tests.test_suite',
\r
56 scripts = ['scripts/jamaendo'],
\r
57 data_files = data_files
\r