rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

feat(core): switch to script bootstrap as a default

Open aignas opened this issue 5 months ago • 2 comments

This PR enables the bootstrap script implementation for bazel 8 and above for UNIX platforms.

DO NOT MERGE: this has to be discussed:

  • [ ] Version number bump to 2.0?

Work towards #2156 Work towards #2521 Relands #2858 and reverts #2968 Fixes #2983

Related:

  • Long term solution in python/peps#4476.
  • Support for rules_pkg to produce working tars is in bazelbuild/rules_pkg#929 that will be released in 1.2 (bazelbuild/rules_pkg#977)
  • The support for working tars that has symlinks is not yet ready in tar.bzl without a heavy performance penalty, see bazel-contrib/tar.bzl#16

aignas avatar Jul 24 '25 11:07 aignas

FYI, @rickeylev, @alexeagle , we can continue talking about re-enabling the script=bootstrap by default for bazel 8+ here. Is there a good way to detect that we are running on that particular version with something else than config.none attribute check?

aignas avatar Sep 20 '25 11:09 aignas

Wait for PEP 796

PEPs can take a long time, so I don't think we should wait on that.

Wait for rules_pkg 1.2 release

Maybe. If the 1.2 release is coming soon, then waiting sounds OK. If it takes too long, though, then I think we'll just have to press ahead. At the least, we should wait until there exists some rule that can package them.

rickeylev avatar Sep 20 '25 18:09 rickeylev