Packaging several py_binaries and runfiles with rules_pkg #28696
Unanswered
sashok-flex
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
The way I've solved this in the past (2+ years ago) is to create a thin I admittedly have not tried this with a recent rules_python, but I suspect something like that should still work. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have several py_binaries I want to package in a tarball. They each have runfiles, which have a lot of duplicate python dependencies (numpy, etc.). In the bazel cache, this is fine, since it's all symlinks. But when I attempt to use pkg_tar on these targets, the runfiles all get duplicated, which massively increases the size of the tarball.
What is the correct way to package several py_binaries with runfiles? Right now, I'm forced to hack a site-packages approach by manually packaging all of the python dependencies into a lib folder, which seems undesirable.
Beta Was this translation helpful? Give feedback.
All reactions