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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
We are using Bazel 7.3.1 (though we are not yet using Bzlmod). We have been using
rules_pythonfor some time now, includingpy_runtimefor 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_ruletargets that invokepy_binarytargets to generate outputs, such as source files and headers. These targets are failing because they attempt toimportPython 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
libfolder like so:This seems to include the contents of the
libfolder into the runfiles, but it also seems to be erroneously adding__init__.pyfiles into every directory for some reason.Perhaps I'm approaching this wrong? Do others have experience with using
py_runtimewith remote execution? Any help would be greatly appreciated!!!!!!Beta Was this translation helpful? Give feedback.
All reactions