So I am trying to build a Mac osx app from python using PyQt4 and either py2app or pyinstaller. Both these scripts build apps that work fine on my build machine ( running mavericks 10.9.5 ) but when I try to use it on another machine they both crash with an EXC_BAD_INSTRUCTION
and then list QT libraries.
I think that maybe my apps are not including the Qt libraries in the build. My setup file for py2app looks like this
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
from setuptools import setup
APP = ['FudgeTestpy.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True, 'includes': ['sip', 'PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui'],
'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL', 'PyQt4.QtScript',
'PyQt4.QtSql', 'PyQt4.QtTest', 'PyQt4.QtWebKit', 'PyQt4.QtXml', 'PyQt4.phonon']}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)