cpython
cpython

allyourcodebase/cpython

NOASSERTION

A port of the CPython implementation of the Python programming language to the zig build system

22 22 2 1
1
build.zig.zon  build.zig  fork 
View on Github  
Updated: 3:41:11 AM Wed Dec 11 2024 Size: 391043KB Created: 2:34:21 AM Sun Jul 09 2023
Dependencies:
libz openssl
Supports Zig Version 0.13.0
zig  fetch  --save  git+https://github.com/allyourcodebase/cpython

CPython Zig Package

This is a fork of CPython, packaged for Zig.

Unnecessary files have been deleted, and the build system has been replaced with build.zig. There are no system dependencies; the only thing required to build this package is Zig.

This builds a static executable, which can be then executed like this:

PYTHONPATH=Lib zig-out/bin/cpython

Project Status

My personal use case is to run the latest ytdlp releases. This package is capable of doing that, however, there may be missing features beyond what is required for this use case, such as missing C modules.

I have tested on x86_64-linux-gnu and x86_64-linux-musl but not any other targets yet. Probably, other targets will need some work before they are additionally supported.

Contributions to broaden the support status are welcome.