Replies: 1 comment
-
OK - so using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We are using Bazel 7.3.1 (though we are not yet using Bzlmod). We have been using
rules_python
for some time now, includingpy_runtime
for our in-build Python3.Things are working fine in local builds, but we have recently started to introduce remote-execution (via Buildbarn) and some of our Python targets are failing. Specifically, we have some
gen_rule
targets that invokepy_binary
targets to generate outputs, such as source files and headers. These targets are failing because they attempt toimport
Python standard library packages, and those packages are not being included in the remote execution environment.I'm not exactly sure what the correct solution is. I have attempted to add the contents of the
lib
folder like so:This seems to include the contents of the
lib
folder into the runfiles, but it also seems to be erroneously adding__init__.py
files into every directory for some reason.Perhaps I'm approaching this wrong? Do others have experience with using
py_runtime
with remote execution? Any help would be greatly appreciated!!!!!!Beta Was this translation helpful? Give feedback.
All reactions