7 __description__ = "A Touch Screen Optimized RPN Calculator using Pie Menus"
9 __email__ = "eopage@byu.net"
18 * Added +/-, !, sq, and sqrt functions
19 * Improved Documentation
20 * Copy of calculation result and the corresponding equation
24 * Experimenting with faster startup by including pyc files in package
25 * Minor tweaks and bug fixes
27 0.9.1 - "Laziness doesn't always pay off"
28 * Profiled the code with an especial focus on the pie menus
29 * Tried to reduce potential bugs with double clicks
30 * Fixed a visual artifact issue on popup
32 0.9.0 - "Feed is for horses, so what about feedback?"
33 * Initial public release
36 * Supports different number types and bases
41 __postinstall__ = '''#!/bin/sh
43 gtk-update-icon-cache /usr/share/icons/hicolor
48 for root, dirs, files in os.walk(path):
50 if file.startswith("src-"):
51 fileParts = file.split("-")
52 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
53 assert unused == "src"
54 relPath = os.sep.join(relPathParts)
55 yield relPath, file, newName
58 def unflatten_files(files):
60 for relPath, oldName, newName in files:
63 d[relPath].append((oldName, newName))
67 if __name__ == "__main__":
69 os.chdir(os.path.dirname(sys.argv[0]))
73 p = Py2deb(__appname__)
74 p.description = __description__
78 p.depends = "python2.5, python2.5-gtk2"
79 p.section = "user/accessories"
82 p.distribution = "chinook diablo"
83 p.repository = "extras-devel"
84 p.changelog = __changelog__
85 p.postinstall = __postinstall__
86 p.icon="26x26-ejpi.png"
87 p["/usr/bin"] = [ "ejpi.py" ]
88 for relPath, files in unflatten_files(find_files(".")).iteritems():
89 fullPath = "/usr/lib/ejpi"
91 fullPath += os.sep+relPath
93 "|".join((oldName, newName))
94 for (oldName, newName) in files
96 p["/usr/share/applications/hildon"] = ["ejpi.desktop"]
97 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
98 p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
102 __version__, __build__, changelog=__changelog__,
103 tar=True, dsc=True, changes=True, build=False, src=True