05/09/2017, 8:21 AM
Hi. I’ve searched the docs and examples for this and hope i’m missing something obvious: is there any way to use an env var (or arbitrary value from the CLI args) in the build as is possible with most other build tools? I can also live with another “more pants-like” way to deal with this situation: We are open-sourcing some python-based tools that we build with pants. For a few (good, IMO) reasons, there’s a site-specific config file that is statically imported and baked into the binary. This works fine for us, but anyone else building these binaries should be able to put the config file in a repo having any name they like, and that’s where I’m stuck. Is there any way to make the contents of sources [] or dependencies [] variable?