7 __description__ = "RPN Calculator"
9 __email__ = "eopage@byu.net"
14 * Experimenting with faster startup by including pyc files in package
15 * Minor tweaks and bug fixes
17 0.9.1 - "Laziness doesn't always pay off"
18 * Profiled the code with an especial focus on the pie menus
19 * Tried to reduce potential bugs with double clicks
20 * Fixed a visual artifact issue on popup
22 0.9.0 - "Feed is for horses, so what about feedback?"
23 * Initial public release
26 * Supports different number types and bases
31 __postinstall__ = '''#!/bin/sh
33 gtk-update-icon-cache /usr/share/icons/hicolor
38 for root, dirs, files in os.walk(path):
40 if file.startswith("src-"):
41 fileParts = file.split("-")
42 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
43 assert unused == "src"
44 relPath = os.sep.join(relPathParts)
45 yield relPath, file, newName
48 def unflatten_files(files):
50 for relPath, oldName, newName in files:
53 d[relPath].append((oldName, newName))
57 if __name__ == "__main__":
59 os.chdir(os.path.dirname(sys.argv[0]))
63 p = Py2deb(__appname__)
64 p.description = __description__
68 p.depends = "python2.5, python2.5-gtk2"
69 p.section = "user/accessories"
72 p.distribution = "chinook diablo"
73 p.repository = "extras-devel"
74 p.changelog = __changelog__
75 p.postinstall = __postinstall__
76 p.icon="26x26-ejpi.png"
77 p["/usr/bin"] = [ "ejpi.py" ]
78 for relPath, files in unflatten_files(find_files(".")).iteritems():
79 fullPath = "/usr/lib/ejpi"
81 fullPath += os.sep+relPath
83 "|".join((oldName, newName))
84 for (oldName, newName) in files
86 p["/usr/share/applications/hildon"] = ["ejpi.desktop"]
87 # p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
88 # p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
89 # p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-ejpi.png|ejpi.png"]
93 __version__, __build__, changelog=__changelog__,
94 tar=True, dsc=True, changes=True, build=False, src=True