py2app is a Python setuptools command that allows you to create standalone macOS application bundles (.app) from Python scripts, including all dependencies. The current version is 0.28.10, requiring Python >=3.10. It wraps py2applet and the py2app build command, with recipes for many popular third-party packages.
pip install py2appNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup.py to build a macOS .app from hello.py. Run 'python setup.py py2app' to build.
Move py2app requirement from install_requires to setup_requires.
Upgrade to Python 3.10+ or pin py2app to an older version (e.g., <=0.28.8).
Use standard CPython without free-threading for building apps with py2app.
Ensure your application does not rely on pkg_resources; modern setuptools uses importlib.resources.