Created
October 22, 2017 21:42
-
-
Save tomfa/9677ff180bbfc02a47b164cd70e4fb59 to your computer and use it in GitHub Desktop.
.py to .exe
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
def main(argv): | |
print('Hi') | |
the_name = input('Your name, please?\n> ') | |
print('Hi {} <3'.format(name)) | |
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
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