-
Notifications
You must be signed in to change notification settings - Fork 332
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
How to avoid bazel installation? #560
Comments
The |
Unfortunately this didn't work. The code failed on this line:
The only thing I've found that works so far is to create a symlink in |
It looks like the Python implementation does not support |
Please migrate to the go version |
The tensorstore project uses a copy of Python bazelisk in its repository in order to avoid the need for users building it to install or even know about bazel when building the Python package. In order to use the go bazelisk for the same purpose we would need a way to bootstrap it, which would basically amount to a python bazeliskisk that is similar to the existing Python bazelisk except it downloads go bazelisk binaries instead of bazel binaries. That would be added complexity for no real benefit. In principle a Python pypi package version of the go bazelisk would also work, and would have some advantages, though embedding the Python bazelisk is hard to beat in convenience and reliability. |
Unfortunately, the Bazel team currently doesn't have capacity to maintain the python version of Bazelisk. But happy to take contributions from the community! |
This may come counter to everything this repo stands for, but here it goes anyway...
I'm a developer for the Spack package manager. I'm trying to build a package (tensorstore) which uses bazelisk. However, Spack has a couple constraints that make it difficult to use bazelisk:
Spack has its own bazel recipe, which patches bazel to avoid unsetting these environment variables. However, tensorstore uses bazelisk which downloads and installs its own copy of bazel, so even if I add a dependency on bazel, it's skipped.
Is there a way to tell bazelisk not to do anything and just use a pre-installed bazel from the PATH? Or an env var I can set to tell it to do this? Or is it possible to tell bazel not to unset all env vars?
@tgamblin
The text was updated successfully, but these errors were encountered: