when we run `setuptools`, it doesn’t look like it ...
# development
w
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
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
got it. yea, that’s what i thought.
h
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
yea.