https://github.com/appimagecrafters/appimage-builder-python-example
appimage-builder example python
https://github.com/appimagecrafters/appimage-builder-python-example
Last synced: 10 months ago
JSON representation
appimage-builder example python
- Host: GitHub
- URL: https://github.com/appimagecrafters/appimage-builder-python-example
- Owner: AppImageCrafters
- Created: 2020-06-26T05:25:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T05:26:34.000Z (about 6 years ago)
- Last Synced: 2024-11-08T05:35:07.235Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Python AppImage packaging example
This project contains an appimage-builder recipe for
a Python3 application. To recreate the package use
a modern Debian/Ubuntu system and appimage-builder.
## Instructions
Packaging a Python3 application into an AppImage is quite
similar to packaging a regular compiled application. Just
a few adjustments are required:
1. Use the Python main binary as entry point:
`exec: usr/bin/python3`
2. Install the pip requirements using the AppDir as root:
`python3 -m pip install --root=AppDir -r ./requirements.txt`
3. Set the PYTHONHOME environment variable in the AppImage runtime:
`PYTHONHOME: '${APPDIR}/usr'`
4. Copy your app source code into the AppDir:
`cp ./src AppDir/usr -r`
That's all!
Check the appimage-builder.yml file for the complete recipe.