Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Created August 8, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxmartin/e8994f79a659c05a5090395bea021112 to your computer and use it in GitHub Desktop.
Save tuxmartin/e8994f79a659c05a5090395bea021112 to your computer and use it in GitHub Desktop.
py2exe windows
C:\Tutorial>python setup.py py2exe
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
distribution = setup(
name="getString",
description="abc",
version="0.0.1",
author="tuxmartin",
author_email="mail@exmaple.net",
options={'py2exe':
{'bundle_files': 1, 'compressed': True, 'optimize': 2}},
console=[{'script': "getString.py"}], zipfile=None)
# http://www.py2exe.org/index.cgi/ListOfOptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment