Hey all! Is it possible to configure pants to pass...
# general
b
Hey all! Is it possible to configure pants to pass in additional flags into the invocation of PEX? I've looked through all the global and subsystem configs and couldn't find anything related. Basically what I'm looking to do is pass in the
--use-pip-config
flag which was added in PEX 2.1.147 to get around issues related to a constantly changing AWS CodeArtifact auth token and caching. I'm not familiar with the code, but if it's not possible, it looks like it may be fairly straight forward to expose this option as a config in either
PythonSetup
or
PythonRepos
and pull it into
ResolvePexConfig
? https://github.com/pantsbuild/pants/blob/130b13e35f253e333233f05b76e6b68e9d930e97/src/python/pants/backend/python/util_rules/pex_requirements.py#L338
h
Yeah, this would require some plumbing, since Pants controls the pex tool's args.
I think we might want this in
PexSubsystem
?
b
thanks @happy-kitchen-89482 ! What about in
PythonRepos
? I don't know how pex handles the flag under the hood but if you are using pip config, I would imagine that the pip config would override any values the user would provide for
[python-repos].find_links
and
[python-repos].indexes