我正在尝试使用py2app构建应用程序,它需要ttkthemes
。我正在尝试将其包含在setup.py
文件中,但无法正常工作。
setup.py
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['ESMB.py']
DATA_FILES = []
OPTIONS = {'iconfile':'icon.icns',
'packages': ['tkinter'],
'includes': ['ttkthemes']
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)