PyDeployment provides an easy way to package Python projects on Windows, macOS, and Linux. This project is a wrapper that leverages existing software to take your project from repository to executable file. If you can run it with Python, you can ship it with PyDeployment.
PyDeployment uses PyInstaller to create an application directory. This created directory is then bundled into the preferred distribution method for the platform.
- On Windows, NSIS is used to create an installer (EXE).
- On macOS, the hdiutil command is used to create an Apple disk image (DMG).
- On Linux, appimagetool is used to create an AppImage.
Install PyDeployment with pip using the following command.
pip install --user pydeployment
After installing PyDeployment, use the pydeploy
command and either a Python
script or a PyInstaller
spec file as the target.
pydeploy myapp.py
Documentation for using PyDeployment can be found on the project website.
The following examples showcase build systems which utilize PyDeployment to build their applications. These examples are themselves template repositories available for use.