Skip to content

Instantly share code, notes, and snippets.

@AlexAvlonitis
Created August 12, 2014 10:41
Show Gist options
  • Save AlexAvlonitis/1ed8a3d4d5acffbf6e5d to your computer and use it in GitHub Desktop.
Save AlexAvlonitis/1ed8a3d4d5acffbf6e5d to your computer and use it in GitHub Desktop.
Single Windows executable from a Python script
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
windows = [{'script': "test.py"}],
zipfile = None,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment