Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

A meta-package for building a version of Python that can be embedded into a Linux AppImage project.

License

Notifications You must be signed in to change notification settings

beeware/Python-Linux-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This project has been deprecated Briefcase now uses indygreg's Standalone Python

Python Linux Support

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.

Quickstart

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:

  1. Ensure that the system dependencies required to build Python are up to date.
  2. Download the original Python source package
  3. Configure and build the Python sources
  4. Install the sources
  5. Strip out parts that add significant bulk, but limited utility for embedded applications:
    • 2to3, pip, pydoc, and python-configure binaries
    • man pages
    • Testing code
    • idle
    • tkinter
    • turtle
  6. 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.

About

A meta-package for building a version of Python that can be embedded into a Linux AppImage project.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks