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

rapid-bird-79300

09/27/2021, 9:30 PM
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

witty-crayon-22786

09/27/2021, 9:34 PM
it is, yea… is it causing problems?
h

happy-kitchen-89482

09/27/2021, 9:41 PM
Yes, new feature - but can be turned off by setting
tailor_pex_binary_targets: false
in
[python-setup]
2
👀 1
r

rapid-bird-79300

09/27/2021, 9:46 PM
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

hundreds-father-404

09/28/2021, 2:31 AM
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!
4 Views