Created
February 21, 2015 18:08
-
-
Save jhoonb/4a6a789556a55b39c9ee to your computer and use it in GitHub Desktop.
setup.py - cx_Freeze
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
""" | |
exemplo setup.py do cx_freeze | |
""" | |
from cx_Freeze import setup, Executable | |
# 3 tipos de input: includes, packages e excludes. | |
buildOptions = dict( | |
includes=['fdb', 'os', 'sys', 'sqlite3', 'time', | |
'datetime', 'configparser', 'hashlib', 'utils'], | |
packages=['fdb', 'os', 'sys', 'sqlite3', 'time', | |
'datetime', 'configparser', 'hashlib', 'utils'], | |
excludes=["tkinter"] | |
) | |
# windows console | |
executables = [ | |
Executable('app.py', base='Console', | |
icon="icon.ico", | |
targetName = 'app.exe') | |
] | |
# | |
setup( | |
name='NomeApp', | |
version = '0.1', | |
description = """ blabla Jhonathan Banczek: jpbanczek@gmail.com""", | |
options = dict(build_exe = buildOptions), | |
executables = executables | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment