[Pythonmac-SIG] py2app warning: may need to include email.Util
Russell E Owen
rowen at u.washington.edu
Wed Jan 17 00:21:48 CET 2007
At 3:01 PM -0800 1/16/07, Russell E Owen wrote:
>The following recipe seems to work, but I don't know if it's really
>the right way to go. It is based on extrapolating from the current
>recipes. None of them seem to do the same job and I've not found any
>docs on writing recipes:
>
>def check(cmd, mf):
> m = mf.findNode('email')
> if m is None or m.filename is None:
> return None
> oldNames = [
> 'base64MIME',
> 'Charset',
> 'Encoders',
> 'Errors',
> 'Generator',
> 'Header',
> 'Iterators',
> 'Message',
> 'MIMEAudio',
> 'MIMEBase',
> 'MIMEImage',
> 'MIMEMessage',
> 'MIMEMultipart',
> 'MIMENonMultipart',
> 'MIMEText',
> 'Parser',
> 'quopriMIME',
> 'Utils',
> 'message_from_string',
> 'message_from_file',
> ]
> oldModules = ["email." + name for name in oldNames]
>
> return dict(
> modules = oldModules,
> )
I spoke too soon. I had my patched urllib in place, masking the
effect of the recipe. This simple recipe does work and does emulate
other recipes:
def check(cmd, mf):
m = mf.findNode('email')
if m is None or m.filename is None:
return None
return dict(
packages = ['email'],
)
-- Russell
More information about the Pythonmac-SIG
mailing list