rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Deprecate toolchains hub repo

Open aignas opened this issue 6 months ago • 1 comments

It was fixed in #3001 where this comment/idea was floated: https://github.com/bazel-contrib/rules_python/pull/3001#issuecomment-2981231509

The ideal way would be to ask users to use toolchain lookup instead but we need to ensure that they know how to use that.

aignas avatar Jun 18 '25 01:06 aignas

Thanks for filing this.

Middle ground/transition idea: replace those aliases (which use select() and duplicate all the logic the toolchains have) with a wrapper that applies a python version transition and does a toolchain lookup. I wonder if that transition being applied might actually fix some issues? (e.g. --python_version=X.Y, but someone using a @python_X_Z reference)

This eliminates the problematic part (the duplicated select-branching conditions) and should be cheap to carry forward for an indeterminate time.

rickeylev avatar Jun 18 '25 02:06 rickeylev