/ prelude / python_bootstrap / python_bootstrap.bzl
python_bootstrap.bzl
 1  # prelude/python_bootstrap/python_bootstrap.bzl
 2  #
 3  # Python bootstrap toolchain provider.
 4  #
 5  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 6  # PRELUDE ARCHAEOLOGY
 7  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 8  #
 9  # Bootstrap Python is used for prelude scripts that can't depend on the
10  # full Python toolchain. It's minimal - just needs an interpreter path.
11  #
12  # ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
13  
14  PythonBootstrapToolchainInfo = provider(fields = {
15      "interpreter": provider_field(typing.Any, default = None),
16  })