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...
In your setup.py
, you want to do something like this:
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
)
See docs - you pass name of your file to py2applet script.
$ py2applet --make-setup MyApplication.py
Wrote setup.py
$ python setup.py py2app -A
And IMHO - pyInstaller - is the best tool for python binaries building.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.