Hi! I was looking to get some help on understandin...
# general
m
Hi! I was looking to get some help on understanding how to easily set
resolve
for a bunch of
python_sources
calls. I have a repo with a couple different projects which have conflicting numpy version dependencies among other things. Based on this guide I was able to setup different resolves and set those resolves for the
python_requirements
calls that I have for these projects. However, when trying to setup the resolves for my
python_sources
, I am having to add
resolve="something"
to a bunch of different
BUILD
files since I have a bunch of subdirectories within the project. I was wondering if there is an easy way to ask
pants
to consider the same resolve for all
BUILD
files within a subdirectory so I can just keep
python_sources()
in my BUILD files for these subdirectories. Hopefully this makes sense, definitely let me know if I am misunderstanding anything here. Thanks!
e
I think you're looking for
__defaults__(...)
: https://www.pantsbuild.org/docs/targets#field-default-values
🙌 1