Add 'email' and 'email.mime.*' to all esky builds

Fixes "ImportError: No module named audio" on SmartOS

Uses 'email.mime.*' rather than a full list of entries.

Also removes a duplicate entry for 'fileinput' from the
windows section that was added to the main FREEZER_INCLUDES

Email thread that suggested this fix:
https://groups.google.com/forum/#!msg/salt-users/_9ynHspSgjk/so0hRdbaPM0J

Tested as a fix to a 0.17.1 checkout on SmartOS.
This commit is contained in:
Nahum Shalman 2013-10-29 14:24:45 -04:00
parent dafa4a2319
commit 5079d271fb

View File

@ -358,7 +358,9 @@ FREEZER_INCLUDES = [
'M2Crypto',
'Cookie',
'asyncore',
'fileinput'
'fileinput',
'email',
'email.mime.*',
]
if IS_WINDOWS_PLATFORM:
@ -370,17 +372,7 @@ if IS_WINDOWS_PLATFORM:
'ntsecuritycon',
'_winreg',
'wmi',
'fileinput',
'site',
'email',
'email.mime.audio',
'email.mime.base',
'email.mime.image',
'email.mime.message',
'email.mime.multipart',
'email.mime.nonmultipart',
'email.mime.text',
'email.mime.application',
])
SETUP_KWARGS['install_requires'].append('WMI')
elif sys.platform.startswith('linux'):