Skip to content

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

License

Notifications You must be signed in to change notification settings

allyourcodebase/cpython

 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.5%
  • C 46.7%
  • C++ 0.4%
  • HTML 0.3%
  • Assembly 0.1%
  • Shell 0.0%