Installation¶
Installing with pip¶
To install py2app using pip, or to upgrade to the latest released version of py2app:
$ pip3 install -U py2app
Installing from source¶
To install py2app from source, simply use the normal procedure for installing any Python package. Since py2app uses setuptools, all dependencies (including setuptools itself) will be automatically acquired and installed for you as appropriate:
$ python setup.py install
Upgrade Notes¶
The setup.py
template has changed slightly in py2app 0.3 in order
to accommodate the enhancements brought on by setuptools. Old setup.py
scripts look like this:
from distutils.core import setup
import py2app
setup(
app=["myscript.py"],
)
New py2app scripts should look like this:
from setuptools import setup
setup(
app=["myscript.py"],
setup_requires=["py2app"],
)