Skip to content

Instantly share code, notes, and snippets.

@tomfa
Created October 22, 2017 21:42
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 tomfa/9677ff180bbfc02a47b164cd70e4fb59 to your computer and use it in GitHub Desktop.
Save tomfa/9677ff180bbfc02a47b164cd70e4fb59 to your computer and use it in GitHub Desktop.
.py to .exe
def main(argv):
print('Hi')
the_name = input('Your name, please?\n> ')
print('Hi {} <3'.format(name))
from cx_Freeze import setup, Executable
base = None
executables = [Executable("script.py", base=base)]
options = {
'build_exe': {
# If you have any libraries in your script,
# such as requests, add them here
'packages': [],
},
}
# Create exe files with python setup.py build
setup(
name = "hello-you",
options = options,
version = "0.01",
description = 'Demo script for ',
executables = executables
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment