ravens / bazel-hermetic-python

Yet another attempt to have a more hermetic python with bazel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bazel-hermetic-python

Yet another attempt to have a more hermetic python with bazel

goal

Build our own python interpreter in a clean fashion and be able to use pip to install packages.

must read blog/github

tryout

We have a simple helloworld using pip packages, and doing a TLS query:

❯ bazel run //:helloworld
INFO: Analyzed target //:helloworld (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:helloworld up-to-date:
  bazel-bin/helloworld
INFO: Elapsed time: 0.211s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
3.9.10 (main, Feb 27 2022, 00:07:43) 
[Clang 13.0.0 (clang-1300.0.29.30)]
Hello world
TLS seems OK

About

Yet another attempt to have a more hermetic python with bazel

License:MIT License


Languages

Language:Starlark 94.0%Language:Python 6.0%