<@U04S45AHA>: regarding: <https://github.com/pants...
# announce
w
a
if pants is run from a pex only containing
pantsbuild.pants
? guessing
w
hm. it ... couldn't be, i think. because the code that is running is in the same module as the thing we're trying to resolve
oh... actually, i think that the comment above is subtle. in
# The checker is already on sys.path, eg: embedded in pants.pex.
... it could be the case that the module is in sys.path, but is not versioned.
a
i forget the package path but the pythonstyle checker is in its own package, separate from the
python
contrib module. if the
python
contrib module depends on the
checker
module, then maybe it's always going to be in scope
w
it's the same backend, and they depend on one another, so i think that they will both be there.
but i think that the above might be why.
some follow up on this: it looks like the issue here was that the pants pex that was then building a checker pex from it's own
sys.path
... had a polluted
sys.path
. it contained old/busted things from site-packages.
e
Aha. As explained in https://pantsbuild.slack.com/archives/C087V4P1T/p1555115862004400?thread_ts=1555086911.001100&amp;cid=C087V4P1T sys.path pollution can come from the
PEX_INHERIT_PATH
env var being turned on and that could be done via
.pexrc
. If it turns out this is not what was going on, the only sane answer is a bug in pex
sys,path
scrubbing; although that has been solid afacit for several years now. Definitely worth an issue file with
PEX_VERBOSE=9
output and
PEX-INFO
contents if that last explanation resort is all we have left.
w
the other thing i was thinking was maybe that pants' own plugin loading might be injecting some other stuff... although i don't know why it would find some of the things it did. i'll look at it monday though. thanks!