X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=setup.py;h=a6703b476aec784c9519acab841a92904c22b997;hp=c898aabc665574cb22d69d49551c293846ce33a9;hb=1db69a594f71e3b80c92d17ec171f3d6ac866bfb;hpb=6f8cc2ea415146b8902b20ddf64d720b42a94c8b diff --git a/setup.py b/setup.py index c898aab..a6703b4 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,60 @@ +#!/usr/bin/env python +# +# This file is part of Jamaendo. +# Copyright (c) 2010, Kristoffer Gronlund +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of Jamaendo nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + from setuptools import setup, find_packages +from glob import glob +import os +import sys + +data_files = [ + ('share/jamaendo', glob('data/icon_*.png') + ['data/bg.png', 'data/album.png']), + ('share/applications/hildon', ['data/jamaendo.desktop']), + ('share/icons/hicolor/26x26/apps', ['data/26x26/jamaendo.png']), + ('share/icons/hicolor/40x40/apps', ['data/40x40/jamaendo.png']), + ('share/icons/hicolor/scalable/apps', ['data/64x64/jamaendo.png']), +] + +# search for translations and repare to install +#translation_files = [] +#for mofile in glob('data/locale/*/LC_MESSAGES/jamaendo.mo'): +# modir = os.path.dirname(mofile).replace('data', 'share') +# translation_files.append((modir, [mofile])) import sys setup( name = "jamaendo", - version = "0.0.1", + version = '0.1', author = "Kristoffer Gronlund", author_email = "kristoffer.gronlund@purplescout.se", - url = "http://github.com/krig/jamaendo", - packages = find_packages(exclude=['tests']), + url = "http://jamaendo.garage.maemo.org/", + packages = ['jamaendo', 'jamaui'], zip_safe=False, - test_suite='tests.test_suite', + scripts = ['scripts/jamaendo'], + data_files = data_files# + translation_files, )