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

witty-crayon-22786

08/17/2021, 12:50 AM
when we run
setuptools
, it doesn’t look like it has any user requirements on its pythonpath: https://github.com/pantsbuild/pants/blob/3be44f011b13a81eb2266a9fc7ae01bd57f7fb2c/src/python/pants/backend/python/goals/setup_py.py#L428-L469 … but we use the default value of
PexRequest.apply_requirement_constraints=True
, meaning that the user constraints are applied to that build. this is probably a more widespread issue, but: the constraints should not be applied there, right?
h

hundreds-father-404

08/17/2021, 12:58 AM
they're applied whenever we build tool PEXes, which is almost always unintentional and wrong to do but idk how to fix because it would be a breaking change. (Breaking something already broken)
w

witty-crayon-22786

08/17/2021, 12:58 AM
got it. yea, that’s what i thought.
h

hundreds-father-404

08/17/2021, 12:59 AM
this is party of why I've been antsy to get out tool lockfiles. The status quo is broken, and rather than leaning into fixing it by no longer using constraints, we can have something much better
w

witty-crayon-22786

08/17/2021, 12:59 AM
yea.