2014-04-03 17:31:02 +00:00
|
|
|
from distutils.core import setup
|
|
|
|
|
|
|
|
import shutil
|
|
|
|
from glob import glob
|
|
|
|
# Remove the build folder
|
|
|
|
shutil.rmtree("build", ignore_errors=True)
|
|
|
|
shutil.rmtree("dist", ignore_errors=True)
|
|
|
|
import py2exe
|
|
|
|
import sys
|
|
|
|
|
|
|
|
includes = ['PyQt4', 'PyQt4.QtGui', 'PyQt4.QtSvg', 'sip', 'pyqtgraph.graphicsItems']
|
|
|
|
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
|
|
|
|
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
|
|
|
|
'Tkconstants', 'Tkinter', 'zmq']
|
2014-04-03 17:33:16 +00:00
|
|
|
if sys.version[0] == '2':
|
|
|
|
# causes syntax error on py2
|
|
|
|
excludes.append('PyQt4.uic.port_v3')
|
|
|
|
|
2014-04-03 17:31:02 +00:00
|
|
|
packages = []
|
|
|
|
dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll',
|
|
|
|
'tk84.dll', 'MSVCP90.dll']
|
|
|
|
icon_resources = []
|
|
|
|
bitmap_resources = []
|
|
|
|
other_resources = []
|
|
|
|
data_files = []
|
|
|
|
setup(
|
|
|
|
data_files=data_files,
|
|
|
|
console=['plotTest.py'] ,
|
|
|
|
options={"py2exe": {"excludes": excludes,
|
|
|
|
"includes": includes,
|
|
|
|
"dll_excludes": dll_excludes,
|
2014-04-03 17:33:16 +00:00
|
|
|
"optimize": 0,
|
2014-04-03 17:31:02 +00:00
|
|
|
"compressed": 2,
|
|
|
|
"bundle_files": 1}},
|
|
|
|
zipfile=None,
|
|
|
|
)
|