-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: Support multiple Python toolchains #154
Comments
This works for me using bazel modules:
Then edit in your flags as desired to the
When executing a target such as:
|
Would that let you define a 3.10 |
The example linked uses the rules The way I've just sent allows you to register multiple toolchains and then launch multiple invocations of bazel but with different toolchains on the same target. e.g
|
We are in need of similar functionality that @JaredNeil requested to have separate Would it be possible / conceivable to extend |
What is the current behavior?
rules_py
doesn't seem to have an easy way to use multiple python toolchains in the same repository.Describe the feature
When using
python_register_multi_toolchains
from bazelbuild/rules_python, it createspy_test
andpy_binary
macros for each version of python that are loaded from@python//<version>:defs.bzl
. It would be nice to have arules_py
analog topython_register_multi_toolchains
, or some easy way to haverules_py
'spy_*
rules use multiple python toolchains in a single workspace.The text was updated successfully, but these errors were encountered: