bazel_rules_pex
bazel_rules_pex copied to clipboard
Python PEX rules for Bazel
Some builds will fail with the error below. It doesn't happen consistently and a simple rebuild (no bazel clean) will allow the build to succeed. _see full stacktrace at the...
It may have broken before this version but I was trying out using pex and it seems like its broken. This is me cloning master and seeing if it works....
I had to use `commit = "7e6890ff5f806dcc3790b86e4acfed9ad3a82ee7"` instead of `tag = "0.3.0"` in the `load(…)` as the tag is out of date ([from 2016, 28 commits ago](https://github.com/benley/bazel_rules_pex/releases)) and misses changes...
When I run it with --verbose_failures it gives the following message: ``` ERROR: /home/vagolikov/.cache/bazel/_bazel_vagolikov/d41052656c7dd24d17b25cebd7e91d28/external/io_bazel_rules_pex/pex/BUILD:4:1: Bootstrapping pex @io_bazel_rules_pex//pex:pex_wrapper failed (Exit 126): bash failed: error executing command (cd /home/vagolikov/.cache/bazel/_bazel_vagolikov/d41052656c7dd24d17b25cebd7e91d28/execroot/__main__ && \ exec...
With `py_test` (PAR-based) rules I can dev/test iterate on an individual test by running the following: 1. `bazel test //foo:foo_tests` 2. find and update an issue in dependency bar.py 3....
First off, thanks for this project it's have been helpful a lot. ## Background I am working on a project to migrate our monorepo from Make to Bazel where the...
*TL;DR:* If I have a `py_library(..., srcs=["foo.py"], imports=["."])`, then with the standard Bazel Python rules I can use `import foo` to reference it. If I link this `py_library` into a...
This generates a `native_libs.txt` file that includes all the `.so` files that are in the pex file, so they get extracted together (eager extraction).
https://github.com/bazelbuild/bazel/pull/2791 should provide the imports information to skylark and this review uses that information (provided in skylark) to build pex_binaries that honor import. --- This change is [](https://reviewable.io/reviews/benley/bazel_rules_pex/35)
When using pex without any entry points, it creates a PEX that is an interpreter that uses the bundled environment. This can be useful to distribute in order to execute...