https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-breakfast-49010

09/18/2020, 9:51 PM
in the
python_binary
call in
main/BUILD
, right?
h

hundreds-father-404

09/18/2020, 9:51 PM
yep
but why use this binary? You can run anything from
build-support/bin
, like
check_inits.py
h

hundreds-breakfast-49010

09/18/2020, 9:52 PM
no particular reason other than it's in the
examples
directory. but it was surprising to me that pants couldn't run it
h

hundreds-father-404

09/18/2020, 9:53 PM
we want to delete those
examples
. they’re stale and have a weird coupling with tests
h

hundreds-breakfast-49010

09/18/2020, 9:53 PM
./pants run examples/src/python/example/hello/main:main
fails with an exception after adding that line
ah okay, if we want to delete them then it doesn't matter
h

hundreds-father-404

09/18/2020, 9:53 PM
yeah, they’re tech debt
h

hundreds-breakfast-49010

09/18/2020, 9:53 PM
any reason we can't put together a commit right nowthat removes the
examples
directory?
h

hundreds-father-404

09/18/2020, 9:54 PM
yes, it means updating all our integration tests to instead create the tests in memory using
setup_tmpdir
. Doable, but takes some time
h

hundreds-breakfast-49010

09/18/2020, 9:54 PM
so just something we haven't gotten to yet
h

hundreds-father-404

09/18/2020, 9:54 PM
yeah