Created
January 1, 2016 07:17
-
-
Save futurulus/f5436def445652fd0c1e to your computer and use it in GitHub Desktop.
py2exe setup file for creating a Windows executable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''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