Commit cae310c5 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fix: avoid importing py3 module from pyqt when using py2

parent 0fb5f05f
......@@ -12,6 +12,10 @@ includes = ['PyQt4', 'PyQt4.QtGui', 'PyQt4.QtSvg', 'sip', 'pyqtgraph.graphicsIte
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
'Tkconstants', 'Tkinter', 'zmq']
if sys.version[0] == '2':
# causes syntax error on py2
packages = []
dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll',
'tk84.dll', 'MSVCP90.dll']
......@@ -25,7 +29,7 @@ setup(
options={"py2exe": {"excludes": excludes,
"includes": includes,
"dll_excludes": dll_excludes,
"optimize": 2,
"optimize": 0,
"compressed": 2,
"bundle_files": 1}},
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment