You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 creates py_test and py_binary macros for each version of python that are loaded from @python//<version>:defs.bzl. It would be nice to have a rules_py analog to python_register_multi_toolchains, or some easy way to have rules_py's py_* rules use multiple python toolchains in a single workspace.
The text was updated successfully, but these errors were encountered:
Would that let you define a 3.10 py_test and a 3.12 py_test in a the same package and run them both in the same bazel test invocation, like the example linked in the first comment?
The example linked uses the rules py_test_3_8, py_test_3_10 etc as separate targets.
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
bazel test //... --config=310
bazel test //... --config=311
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: