Henning Hraban Ramm wrote:
> I changed login.py loclly for me, since there was also no other method
> to get rid of the dabo logo in the login dialog.
> I wouldn't mind the logo, but it complicates py2app setup (doesn't get
> included by simply including dabo.icons).
Here's relevant sections of my setup.py, which builds my app on Windows using
py2exe
and on Mac using py2app:
36 # Find the location of the dabo icons:
37 iconDir = os.path.split(dabo.icons.__file__)[0]
38 iconSubDirs = []
39 def getIconSubDir(arg, dirname, fnames):
40 if ".svn" not in dirname and "cards" not in dirname.lower() and
dirname[-1] != "\\":
41 icons = glob.glob(os.path.join(dirname, "*.png"))
42 if icons:
43 subdir = (os.path.join("resources", dirname[len(arg)+1:]), icons)
44 iconSubDirs.append(subdir)
45 os.path.walk(iconDir, getIconSubDir, iconDir)
103 data_files=[("db/sqlite", glob.glob("db/sqlite/*.sql")),
104 ("resources", glob.glob(os.path.join(iconDir, "*.ico"))),
105 ("resources", glob.glob("resources/*")),
106 ("reports", glob.glob("reports/*")),
107 ("messages", glob.glob("messages/*")),
108 ("db/updates", glob.glob("db/updates/*"))]
109 data_files.extend(iconSubDirs)
140 elif sys.platform.startswith("darwin"):
141 options = {"py2app":
142 {"includes": ["App", "__version__", "constants",
"db.updates",
143 "ui", "biz", "ss_common.lib.floatcanvas",
144 "encodings", "wx", "wx.lib.calendar",
"wx.gizmos"],
145 "optimize": 2,
146 "excludes": ["matplotlib",
"Tkconstants","Tkinter","tcl",
147 "_imagingtk", "PIL._imagingtk",
148 "ImageTk", "PIL.ImageTk", "FixTk",
"wxPython",
149 ],
150 "argv_emulation": True,
151 "resources": data_files,
152 "plist": dict(CFBundleGetInfoString=_appVersion,
153
CFBundleIdentifier="com.sanbenitoshutter.sbs_studio",
154 LSPrefersPPC=False,
155 NSHumanReadableCopyright=_copyright
156 ),
157 "iconfile": "resources/logo_green.icns",
158 }
159 }
160
161 setup(name="SBS Studio",
162 app=[_script],
163 version=_appVersion,
164 description=_appDescription,
165 author=_authorName,
166 author_email=_authorEmail,
167 url=_authorURL,
168 options=options,
169 #data_files=data_files,
170 setup_requires=["py2app"]
171 )
172
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]