Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass --proxy to build subprocesses #13124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ichard26
Copy link
Member

Similar to --cert and --client-cert, the --proxy flag was not passed down to the isolated build environment. This was simply an oversight.

I opted to store the original proxy string in a new attribute on the session as digging into the .proxies dictionary felt janky, and so did passing the proxy string to the finder as an argument.

Fixes #6018. This supersedes and closes #13075.

Similar to --cert and --client-cert, the --proxy flag was not passed
down to the isolated build environment. This was simply an oversight.

I opted to store the original proxy string in a new attribute on the
session as digging into the .proxies dictionary felt janky, and so did
passing the proxy string to the finder as an argument.

Co-authored-by: lcmartin <[email protected]>
@ichard26 ichard26 added the C: proxy Dealing with proxies and networking label Dec 22, 2024
@ichard26
Copy link
Member Author

Hi @martinezlc99, I took your PR and effectively rewrote it. I think it's cleaner to simply add a new attribute on the pip session to store the proxy, similar to how other network configuration (trusted-hosts, TLS certificates) is already passed through the finder. I also added a test. Anyway, I did add you as a co-author as I'm still building off of your work. PTAL!

@martinezlc99
Copy link

@ichard26 thanks!

I am not super familiar with the pip internals (although I would like to be), so did my best with my limited understanding.

@ichard26 ichard26 added this to the 25.0 milestone Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided C: proxy Dealing with proxies and networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyproject.toml-based builds lose proxy config for build-dependency installation
2 participants