1from distutils.command.bdist import bdist 2import sys 3 4if 'egg' not in bdist.format_commands: 5 bdist.format_command['egg'] = ('bdist_egg', "Python .egg file") 6 bdist.format_commands.append('egg') 7 8del bdist, sys 9 10