setup.py:
1234567
from distutils.core import setupimport py2exeimport syssys.argv.append('py2exe')setup(options = {'py2exe': {'bundle_files': 1, 'compressed': True}}, console=['image.py'])
python setup.py
123456
import syssys.path.append(PACKAGE_DIR)options = {'py2exe': { 'packages': ['PACKAGE_NAME'] }}