Skip to content

Instantly share code, notes, and snippets.

@jhoonb
Created February 21, 2015 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhoonb/4a6a789556a55b39c9ee to your computer and use it in GitHub Desktop.
Save jhoonb/4a6a789556a55b39c9ee to your computer and use it in GitHub Desktop.
setup.py - cx_Freeze
"""
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