OI am using cx_freeze on CentOS6 (via Bash) and when I do "Python setup.py build" I get this error:
$ python setup.py build
File "setup.py", line 11
options=['build_exe':{'excludes':excludes, 'packages':packages, 'include_files':includefiles}]
^
SyntaxError: invalid syntax
Here's my setup.py:
import sys
from cx_Freeze import setup, Executable
includefiles = ['cpu.py']
includes = ['psutil', 'time', 'socket']
excludes=[]
packages=[]
setup(name='CPU Stats',
version='0.1',
description='Script to pull CPU Stats',
options=['build_exe':{'excludes':excludes, 'packages':packages, 'include_files':includefiles}]
executables=[Executable('cpu.py')]
)
'Cpu.py" is the script I want to bundle. "psutil", "time", "socket" are Python modules.
For my setup.py, I used [this]cx_Freeze and Python 3.3 by @Slobodan Stevic