Hey Pants Team, we're testing upgrading to `2.7.0`...
# general
r
Hey Pants Team, we're testing upgrading to
2.7.0
and now
./pants tailor
is adding
pex_binary
targets to our python files that have
if __name__ == "main"
. Is this intentional? Created an example of this here: https://github.com/njgrisafi/pants-example/tree/pex-binary-example-2.7.0
w
it is, yea… is it causing problems?
h
Yes, new feature - but can be turned off by setting
tailor_pex_binary_targets: false
in
[python-setup]
2
👀 1
r
okay no major issue it was just causing a large diff on the PR where we are bumping the version. @happy-kitchen-89482 your suggestion works to prevent this large diff thank you!
h
https://github.com/pantsbuild/pants/issues/12911 tracks ignoring ./pants tailor at a more granular level. It proposes ignoring both by file glob and target name - feedback welcomed on the proposed design!