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

Add trusted-host option for pip #1737

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Add trusted-host option for pip #1737

merged 1 commit into from
Jan 19, 2021

Conversation

vv-p
Copy link
Contributor

@vv-p vv-p commented Nov 18, 2020

Sometimes private devpi registry doesn't have a valid ssl-certificate, so pip is unable to install something from it. This patch adds option "--trusted-host" which allows work with unsecure devpi registies.

@bartclone
Copy link

Sometimes private devpi registry doesn't have a valid ssl-certificate, so pip is unable to install something from it. This patch adds option "--trusted-host" which allows work with unsecure devpi registies.

AFAIKS this parameter can hold (just) 1 host?
Might be more logical to use/allow a list of hosts here. Something along --pip-unsecure-hosts

@jordansissel
Copy link
Owner

@BartKoppers Good insight. I think this code could be easily updated to allow multiple hosts without harming usability -- but I think we can wait until that is requested. Patch looks OK to me :)

want_pkg,
]

safesystem(setup_cmd*" ")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safesystem() can take a list of arguments, so I'll make a small change after merging to use it that way.

@jordansissel jordansissel merged commit c9487a3 into jordansissel:master Jan 19, 2021
jordansissel added a commit that referenced this pull request Jan 19, 2021
instead of a space-separated argument string

Tested with this command:

    bundle exec bin/fpm --debug -s python -t deb --python-pip =pip django

And verified that safesystem() to invoke pip is given a list.

Mentioned this here:
#1737 (comment)
jordansissel added a commit that referenced this pull request Jan 19, 2021
instead of a space-separated argument string

Tested with this command:

    bundle exec bin/fpm --debug -s python -t deb --python-pip =pip django

And verified that safesystem() to invoke pip is given a list.

Mentioned this here:
#1737 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants