NOTE: This project has been deprecated Briefcase now uses indygreg's Standalone Python
This is a meta-package for building a version of Python that can be embedded into a Linux AppImage.
This branch builds a packaged version of Python 3.11.0. Other Python versions are available by cloning other branches of the main repository:
It works by downloading and building the standard Python sources, after ensuring that key system libraries are installed. It installs the compiled Python into a temporary prefix location, strips out parts that aren't needed, and packages the result. The output of this project is an analog of the "embedded" Windows distribution that is officially provided by the Python project.
A version of this package, compiled on Ubuntu 18.04, is available for x86_64.
If you want to build your own version, you will need to have Docker installed. After installing docker, run:
$ make
This will:
- Ensure that the system dependencies required to build Python are up to date.
- Download the original Python source package
- Configure and build the Python sources
- Install the sources
- Strip out parts that add significant bulk, but limited utility for embedded
applications:
2to3
,pip
,pydoc
, andpython-configure
binaries- man pages
- Testing code
idle
tkinter
turtle
- Build a tarball of the installed output.
The build products will be in the build directory; the distributable tarball will be in the dist directory.