[Pythonmac-SIG] ANN: py2app / bdist_mpkg 0.1.5 preview
Cliff Wells
clifford.wells at comcast.net
Tue Nov 2 02:21:07 CET 2004
On Thu, 2004-10-21 at 00:35 -0400, Bob Ippolito wrote:
> I've put together a little preview of py2app 0.1.5, which has MAJOR
> feature enhancements over 0.1.4.
> http://undefined.org/python/py2app-0.1.5.mpkg.zip (installer for Mac
> OS X 10.3)
Hi,
I'm trying to use this version of py2app. I'm encountering the
following error:
error: can't copy 'favorites': doesn't exist or not a regular file
This is true: favorites is a directory, not a regular file. However the
same setup.py works for Windows, Linux *and* on OS X (if I use 'python
setup.py py2app' rather than 'python setup.py bdist_mpkg').
My setup.py is as follows:
from distutils.core import setup
import sys, glob
if sys.platform == 'win32':
import py2exe
buildstyle = 'windows'
packager = 'py2exe'
elif sys.platform == 'darwin':
import py2app
buildstyle = 'app'
packager = 'py2app'
else:
buildstyle = 'console'
packager = None
setup(name='Project DU Reader',
version = '1.0',
description = 'Themeable RSS reader',
author = 'Cliff Wells',
author_email = 'clifford.wells at comcast.net',
url = 'http://www.projectdu.com/',
options = {packager: {'packages': ['encodings', 'twisted'],
'excludes': ['pywin', 'pywin.debugger', 'pywin.debugger.dbgcon',
'pywin.dialogs', 'pywin.dialogs.list',
'Tkinter', 'Tkconstants', 'tcl', 'Tk']
}},
data_files=[('', ['DU_Icon.ico', 'favorites', 'icons', 'themes'])],
**{buildstyle: [{'script': 'du.py',
'icon_resources': [(1, 'DU_Icon.ico')],
}]}
)
For 'favorites' and 'icons' I could simply use glob. However the
'themes' directory is about three levels deep and I'd like to avoid
having to do a ton of work to generate that particular file list, esp
since it is large and changes frequently.
Any help appreciated.
Regards,
Cliff
--
Cliff Wells <clifford.wells at comcast.net>
More information about the Pythonmac-SIG
mailing list