Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
.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