When I was building my python standalone app with command python setup.py py2app
, the output package fails to start. However, if I build with hot link python setup.py py2app -A
, it works fine.
I used PyQt for my app, maybe that causes the problem.
Here's my setup.py
:
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['teammaker.py']
DATA_FILES = ['ui.py']
OPTIONS = {'argv_emulation': True, 'includes':['sip','PyQt5','PyQt5.QtWidgets']}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
and here's my crash log.
Please help to find out the problem, thank you!