Add yum to freezer includes if we can actually freeze it, ie, is it available?

This commit is contained in:
Pedro Algarvio 2013-05-22 00:45:54 +01:00
parent 39631427b4
commit 0aeb2af20f

View file

@ -260,10 +260,12 @@ if sys.platform.startswith('win'):
])
setup_kwargs['install_requires'].append('WMI')
elif sys.platform.startswith('linux'):
freezer_includes.extend([
'yum',
'spwd',
])
freezer_includes.append('spwd')
try:
import yum
freezer_includes.append('yum')
except ImportError:
pass
if HAS_ESKY:
# if the user has the esky / bbfreeze libraries installed, add the