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
This technically goes against strict hermeticity, but in practice, it is such a natural thing to do that it would be very strange not to support it.
The main idea is to define a Bazel target for a locally installed Python instead of downloading a full Python toolchain from GitHub, as is done in the internals of rules_python.
Many projects such as Google Benchmark and re2 have done this for a while, and rules_python itself mentions the ability to define a local custom Python toolchain in its documentation (and on several issues and discussions).
In fact, given the rather high level of standardization of Python interpreters available on systems today through package managers and projects like python-build-standalone, we can probably assume any given interpreter on a user system as "reasonably hermetic".
What's necessary to support this is to define a good enough template for a Python toolchain to forward any local interpreter to Bazel.
The text was updated successfully, but these errors were encountered:
This technically goes against strict hermeticity, but in practice, it is such a natural thing to do that it would be very strange not to support it.
The main idea is to define a Bazel target for a locally installed Python instead of downloading a full Python toolchain from GitHub, as is done in the internals of
rules_python
.Many projects such as Google Benchmark and re2 have done this for a while, and
rules_python
itself mentions the ability to define a local custom Python toolchain in its documentation (and on several issues and discussions).In fact, given the rather high level of standardization of Python interpreters available on systems today through package managers and projects like python-build-standalone, we can probably assume any given interpreter on a user system as "reasonably hermetic".
What's necessary to support this is to define a good enough template for a Python toolchain to forward any local interpreter to Bazel.
The text was updated successfully, but these errors were encountered: