facebook / facebook/buck2

Providing a hermetic python toolchain

Open
#19 11 comments 1 reaction 0 assignees View on GitHub
prelude python
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

For serious use-cases we would benefit from a system-independent python toolchain that can source an interpreter. At the basic level this involves downloading a copy of CPython for the current platform that can run code. An issue with this is that basic cpython depends on dynamic libraries such as libssl and libsqlite, so we need to either provide a mechanism for building those consistently (c / cpp compiler) or use an interpreter with static linking such as https://python-build-standalone.readthedocs.io

## Potential learnings from bazel

- dependencies are managed in a repo rule, meaning they are not using the same toolchain that bazel uses, but use the local toolchain
- cross compilation is tough (broken)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.