Skip to content

Instantly share code, notes, and snippets.

@futurulus
Created January 1, 2016 07:17
Show Gist options
  • Save futurulus/f5436def445652fd0c1e to your computer and use it in GitHub Desktop.
Save futurulus/f5436def445652fd0c1e to your computer and use it in GitHub Desktop.
py2exe setup file for creating a Windows executable
'''Build an executable.'''
from distutils.core import setup
import os
import py2exe
setup(console=[
{'script': 'main.py'}
],
options={'py2exe': {
#'compressed': 1,
#'optimize': 2,
'bundle_files': 1,
#'packages': ['numpy'],
}})
#os.rename('dist/main.exe', 'dist/progname.exe')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment