bazel-contrib / bazel-contrib/rules_python

Make script bootstrap the default

Open
#2,521 2 comments 0 reactions 1 assignee Claimed by @rickeylev View on GitHub
core-rules P1 type: toolchain
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
14h 49m
Merged PRs (30d)
81

Description

This is a general tracking issue for making the default bootstrap method the "script" implementatation (i.e. `--bootstrap_impl=script`).

The current default is "system_python", which has the problem that it relies on the system having some Python already installed and available via shebang in order to run a py_binary (which often has its own interpreter).

TODO

* [x] Make rules_pkg support raw symlinks https://github.com/bazelbuild/rules_pkg/pull/930
* [x] Make CI happy when its the default
* [ ] Make it the default for linux/mac
* This is blocked by: Bazel 8+ is required for rules_pkg to package a py_binary when build-time relative symlinks are enabled (`--venvs_use_declare_symlink=yes`, the default).
* [ ] Provide a windows equivalent

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.