Skip to content

Instantly share code, notes, and snippets.

@VoX
Created October 22, 2014 22:00
Show Gist options
  • Save VoX/0a45ae63483031f5a146 to your computer and use it in GitHub Desktop.
Save VoX/0a45ae63483031f5a146 to your computer and use it in GitHub Desktop.
from distutils.core import setup
import py2exe, os
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll","sdl_ttf.dll"):
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
setup(windows = ["supercombat.py"],
author='Ian Hills',
author_email='icopy11@gmail.com',
url='',
options={"py2exe":{"includes": ["pygame","eztext"]}},
data_files=[('./data', ['./data/tankp1.png','./data/Ubuntu-R.ttf','./data/tankp2.png','./data/tankp2.png','./data/missile.png','./data/wall.png','./data/pylon.png','./data/noh.mp3','./data/death.wav','./data/hit.wav','./data/missile.wav','./data/start.wav',])])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment