Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Added proxy support #54

Merged
merged 2 commits into from
Jan 30, 2021
Merged

Added proxy support #54

merged 2 commits into from
Jan 30, 2021

Conversation

gbassisp
Copy link
Contributor

Following issue #31, added support for a proxy argument, similar to pip's one (using --proxy on the CLI). The proxy is added to the environment variables, since PySmartDL does not support it, but uses urllib, which ultimately accepts the env vars.

Since build_cache does not use PySmartDL, but _download does, behaviour differs with the command entered, and so does the environment variable used by the request. Hence, the same proxy is set for different variable names.

Setting the proxy to environment variables, since the PySmartDL module does not support it.
@lepisma lepisma merged commit a826cc5 into lepisma:master Jan 30, 2021
@lepisma
Copy link
Owner

lepisma commented Jan 30, 2021

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants