I tried using py2app, but I can't figure out where to put the filename of the file I want to make the standalone for. What command do I need to run? I'm extremely confused...
问问题
1490 次
2 回答
3
在你的setup.py
,你想做这样的事情:
from distutils.core import setup
import py2app
setup(name="App name",
version="App version",
options=opts, # see the py2app docs, could be a lot of things
app=[main.py], # This is the standalone script
)
于 2011-08-05T05:41:53.407 回答
1
请参阅文档- 您将文件名传递给 py2applet 脚本。
$ py2applet --make-setup MyApplication.py
Wrote setup.py
$ python setup.py py2app -A
恕我直言 - pyInstaller - 是构建 python 二进制文件的最佳工具。
于 2011-08-05T05:41:39.640 回答