Source

jelly / setup.py

Full commit
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup
try:
    import py2exe
except ImportError:
    pass

origIsSystemDLL = py2exe.build_exe.isSystemDLL # save the orginal before we edit it
def isSystemDLL(pathname):
    # checks if the freetype and ogg dll files are being included
    if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll","sdl_ttf.dll"): # "sdl_ttf.dll" added by arit.
            return 0
    return origIsSystemDLL(pathname) # return the orginal function
py2exe.build_exe.isSystemDLL = isSystemDLL 

setup(
    name='jelly',
    version='1.0',
    author='Radomir Dopieralski',
    packages=['jelly'],
    scripts=['run_jelly.py'],
    include_package_data=True,
    zip_safe=True,
    install_requires=['distribute', 'pygame'],
    platforms='any',
    options = {
        'py2exe': {
            'bundle_files': 1,
            'packages': 'jelly',
            'compressed': True,
            'ascii': True,
            'excludes': [
                'doctest',
                'pdb',
                'unittest',
                'difflib',
                'inspect',
                'locale',
                'pyreadline',
                'optparse',
                'calendar',
                'pickle',
            ]
        },
    },
    windows = [
        {
            'script': "run_jelly.py",
            'icon_resources': [
                (0, "resources/jelly.ico"),
            ]
        }
    ],
    zipfile = None,
)