2 # -*- coding: utf-8 -*-
5 reload(sys).setdefaultencoding("UTF-8")
9 from sdist_maemo import sdist_maemo as _sdist_maemo
10 sdist_maemo = _sdist_maemo
13 print 'sdist_maemo command not available'
15 from distutils.core import setup
16 from ejpi import constants
21 os.path.isdir(path) and
22 os.path.isfile(os.path.join(path, '__init__.py'))
26 def find_packages(path, base="", includeRoot=False):
27 """ Find all packages in path """
29 assert not base, "Base not supported with includeRoot: %r" % base
30 rootPath, module_name = os.path.split(path)
33 for item in os.listdir(path):
34 dir = os.path.join(path, item)
37 module_name = "%(base)s.%(item)s" % vars()
41 for mname in find_packages(dir, module_name):
46 icon = "data/%s.png" % constants.__app_name__
50 name=constants.__app_name__,
51 version=constants.__version__,
52 description="RPN calculator designed for touchscreens",
53 long_description="RPN calculator designed for touchscreens",
55 author_email="eopage@byu.net",
57 maintainer_email="eopage@byu.net",
58 url="http://ejpi.garage.maemo.org/",
59 license="GNU LGPLv2.1",
63 packages=list(find_packages(constants.__app_name__, includeRoot=True)),
67 # cog.outl(' ("%s", ["data/%%s.desktop" %% constants.__app_name__]),' % desktopFilePath)
69 ("/usr/share/applications", ["data/%s.desktop" % constants.__app_name__]),
71 ("/usr/share/icons/hicolor/22x22/apps", ["data/icons/22/%s.png" % constants.__app_name__]),
72 ("/usr/share/icons/hicolor/28x28/apps", ["data/icons/28/%s.png" % constants.__app_name__]),
73 ("/usr/share/icons/hicolor/32x32/apps", ["data/icons/32/%s.png" % constants.__app_name__]),
74 ("/usr/share/icons/hicolor/48x48/apps", ["data/icons/48/%s.png" % constants.__app_name__]),
75 ("/usr/share/icons/hicolor/scalable/apps", ["data/%s.svg" % constants.__app_name__]),
81 'sdist_diablo': sdist_maemo,
82 'sdist_fremantle': sdist_maemo,
83 'sdist_harmattan': sdist_maemo,
87 "debian_package": constants.__app_name__,
88 "Maemo_Display_Name": constants.__pretty_app_name__,
89 #"Maemo_Upgrade_Description": changes,
90 "Maemo_Bugtracker": "https://bugs.maemo.org/enter_bug.cgi?product=ejpi",
91 "Maemo_Icon_26": "data/icons/48/%s.png" % constants.__app_name__,
92 "MeeGo_Desktop_Entry_Filename": constants.__app_name__,
93 #"MeeGo_Desktop_Entry": "",
94 "section": "user/science",
97 "buildversion": str(constants.__build__),
98 "depends": "python, python-qt4-core, python-qt4-gui",
99 "architecture": "any",
102 "debian_package": constants.__app_name__,
103 "Maemo_Display_Name": constants.__pretty_app_name__,
104 #"Maemo_Upgrade_Description": changes,
105 "Maemo_Bugtracker": "https://bugs.maemo.org/enter_bug.cgi?product=ejpi",
106 "Maemo_Icon_26": "data/icons/48/%s.png" % constants.__app_name__,
107 "MeeGo_Desktop_Entry_Filename": constants.__app_name__,
108 #"MeeGo_Desktop_Entry": "",
109 "section": "user/science",
111 "changelog": changes,
112 "buildversion": str(constants.__build__),
113 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-pyside.maemo5",
114 "architecture": "any",
117 "debian_package": constants.__app_name__,
118 "Maemo_Display_Name": constants.__pretty_app_name__,
119 #"Maemo_Upgrade_Description": changes,
120 "Maemo_Bugtracker": "https://bugs.maemo.org/enter_bug.cgi?product=ejpi",
121 "Maemo_Icon_26": "data/icons/26/%s.png" % constants.__app_name__,
122 "MeeGo_Desktop_Entry_Filename": constants.__app_name__,
123 #"MeeGo_Desktop_Entry": "",
124 "section": "user/science",
126 "changelog": changes,
127 "buildversion": str(constants.__build__),
128 "depends": "python, python-pyside.qtcore, python-pyside.qtgui",
129 "architecture": "any",
132 "requires": "REPLACEME",
134 "group": "REPLACEME",