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

wooden-thailand-8386

09/04/2020, 6:14 PM
Hello there! I’m adding an internal wheels cache for pants and it’s a self-signed certificate for the url that’s serving it so when I run pants it throws back
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError("hostname
… seems like using
PYTHONHTTPSVERIFY=0
would “fix” that but I’m not sure how to do that / if there’s a better workaround
w

witty-crayon-22786

09/04/2020, 6:24 PM
it’s PEX that actually does wheel resolution: https://github.com/pantsbuild/pex/
depending which version of pants you’re using, more or less options might be exposed for that.
but the pex CLI only seems to expose
Copy code
--proxy=PROXY       Specify a proxy in the form
                        [user:passwd@]proxy.server:port.
    --cert=PATH         Path to alternate CA bundle.
    --client-cert=PATH  Path to an SSL client certificate which should be a
                        single file containing the private key and the
                        certificate in PEM format.
w

wooden-thailand-8386

09/04/2020, 6:29 PM
that’s really helpful, I’m gonna give it a try. Thanks @witty-crayon-22786!
w

witty-crayon-22786

09/04/2020, 6:29 PM
a particular Pants version uses a particular Pex version
w

wooden-thailand-8386

09/04/2020, 6:30 PM
I’m using 1.30.0 not sure which pex it’s on it
w

witty-crayon-22786

09/04/2020, 6:31 PM
the options may also not necessarily be exposed out of Pants… the most likely place would be here: https://www.pantsbuild.org/v2.0/docs/reference-python-setup
3 Views