Comments (2)
You could absolutely say this not Bazelisk's problem, but for what's it's worth, I worked around this by refactoring the script to be py2-compatible, and using #!/usr/bin/python as the hashbang
This sounds like a good idea. I'd be happy to merge a PR that makes Bazelisk compatible with Python 2 and 3 at the same time. :)
from bazelisk.
Bazelisk (Python version) is now compatible with Python 2 and 3. I'm adding a test that ensures that this continues to be the case.
For the hashbang line, I'm not sure what to do. It seems like there's just no good way to ensure that it works on all systems: https://blogs.gnome.org/mcatanzaro/2018/02/16/on-python-shebangs/
I'd say - feel free to replace it with whatever fits your use case best.
I'll leave it like this for now, also because Bazel's way of finding Python installations on the system has changed a lot in the last release and the Go version of Bazelisk is gaining more traction and features. Hope that's OK with you!
from bazelisk.
Related Issues (20)
- build.sh fails on M1 Macs
- Issue Installing Bazel for MediaPipe on Raspberry Pi 4 HOT 1
- Exponential Backoff Test Intermittency HOT 1
- Bazelisk is failing at Bazel@HEAD
- `last_rc` was returning a 6.3.2 release candidate even though 6.3.2 was released HOT 2
- `MODULE.bazel` and `REPO.bazel` are not supported
- Server crashed during startup. while parsing option --digest_function=BLAKE3: Not a valid hash function HOT 2
- Go Bazelisk Binary Does Not Respect "arch --arch arm64"
- Use of --credential_helper flag causes Bazelisk to exit with code 37 HOT 3
- Bazelisk run doesn't propagate signals to the child process
- Bazelisk 1.18 doesn't handle WORKSPACE-less repositories HOT 3
- Bazelisk does not print its version anymore in `1.18.0` when calling `bazelisk version` HOT 2
- py_bazelisk_test & py3_bazelisk_test is failing with Bazel@HEAD HOT 2
- Support BAZELISK_VERIFY_SHA256 for multiplatform projects HOT 1
- .bazelversion not being read in parent directory outside of WORKSPACE HOT 2
- Bazelisk is failing with "httputil:go_default_test" at Bazel@HEAD HOT 2
- `latest-1` is resolved as 7.0.0 instead of 6.4.0 HOT 1
- could not download Bazel when I want to execute the command:bazel build onos HOT 9
- bazelisk run/test hide segmentation violations
- Error loading package under directory error with Bazel@HEAD in CI HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazelisk.