https://pantsbuild.org/ logo
#general
Title
# general
c

clean-night-52582

08/19/2020, 9:59 PM
Hey I’ve been trying to read about creating custom targets in pants. What I’m trying to achieve is create a
python_binary
target that can remove dependencies or transitive dependencies and not packaged them. I’ve got some util targets that depend on
tensorflow
, but don’t use it the code paths in certain binaries. I know we could be disciplined and not have it in the build graph but that could add a lot of targets that aren’t really necessary. I’ve used bazel’s
depset
in before achieving something like this: Is there a good way to get this in pants?