~mrooney/wxbanker/0.4

75 by Michael Rooney
beginnings of setup.py
1
#!/usr/bin/env python
85 by Michael Rooney
renamed locales to locale to fit in with standards and install correctly
2
#    https://launchpad.net/wxbanker
3
#    setup.py: Copyright 2007, 2008 Mike Rooney <michael@wxbanker.org>
4
#
5
#    This file is part of wxBanker.
6
#
7
#    wxBanker is free software: you can redistribute it and/or modify
8
#    it under the terms of the GNU General Public License as published by
9
#    the Free Software Foundation, either version 3 of the License, or
10
#    (at your option) any later version.
11
#
12
#    wxBanker is distributed in the hope that it will be useful,
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
#    GNU General Public License for more details.
16
#
17
#    You should have received a copy of the GNU General Public License
18
#    along with wxBanker.  If not, see <http://www.gnu.org/licenses/>.
75 by Michael Rooney
beginnings of setup.py
19
20
from distutils.core import setup
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
21
import os, glob
77 by Michael Rooney
import app version and use in setup.py
22
import version
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
23
24
#Create an array with all the locale filenames
25
I18NFILES = []
85 by Michael Rooney
renamed locales to locale to fit in with standards and install correctly
26
for filepath in glob.glob("locale/*/LC_MESSAGES/*.mo"):
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
27
    targetpath = os.path.dirname(os.path.join("share/", filepath))
28
    I18NFILES.append((targetpath, [filepath]))
75 by Michael Rooney
beginnings of setup.py
29
30
setup(
77 by Michael Rooney
import app version and use in setup.py
31
    version = version.NUMBER,
75 by Michael Rooney
beginnings of setup.py
32
    name = "wxBanker",
33
    description = "Lightweight personal finance manager",
34
    author = "Michael Rooney",
35
    author_email = "michael@wxbanker.org",
36
    url = "http://wxbanker.org",
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
37
    download_url='https://launchpad.net/wxbanker/+download',
75 by Michael Rooney
beginnings of setup.py
38
    package_dir = {'wxbanker': ''},
39
    packages = ["wxbanker", "wxbanker.art"],
85 by Michael Rooney
renamed locales to locale to fit in with standards and install correctly
40
    package_data = {'wxbanker': ['*.txt']},
78 by Michael Rooney
attempted to properly use requires for wxPython
41
    requires = ["wx (>=2.8)"],
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
42
    license='GNU GPL',
43
    platforms='linux',
44
    scripts = ['bin/wxbanker'],
75 by Michael Rooney
beginnings of setup.py
45
    data_files = [
84 by Michael Rooney
moved wxbanker.desktop to bin/ to be less confusing and more out of the
46
        ("share/applications", ["bin/wxbanker.desktop"]),
76 by Michael Rooney
pretty functional setup.py now! however the bin isn't working :[
47
        ('share/icons/hicolor/16x16/apps', ['images/16/wxbanker.png']),
48
        ('share/icons/hicolor/24x24/apps', ['images/24/wxbanker.png']),
49
        ('share/icons/hicolor/32x32/apps', ['images/32/wxbanker.png']),
50
        ('share/icons/hicolor/48x48/apps', ['images/48/wxbanker.png']),
51
        ('share/icons/hicolor/256x256/apps', ['images/256/wxbanker.png']),
52
        ('share/pixmaps', ['images/48/wxbanker.png']),
53
    ] + I18NFILES
75 by Michael Rooney
beginnings of setup.py
54
55
)