Install pip on debian system from packages#102
Conversation
|
you would have to create an attribute to denote if you want to install pip via system packaging vs get_pip (e.g. a large |
|
Thank you for your feedback! I changed my code according to your concerns, what do you think about it now? |
|
what about virtualenv :3? I think this needs tests and you can bug the actual maintainers about being merged in. |
|
@coderanger what do you think about this PR? |
|
No, installing pip via system packages is out of scope for this cookbook. It moves too quickly to want to rely on distros. |
|
How about if we don't overwrite existing system pip installs? elsif platform_family?("rhel", "fedora", "debian")instead. |
|
No, installing pip from system packages is literally wrong :-) Because it is only the client side of a rapidly evolving ecosystem (including server components not under your control) it is unwise to depend on backports for things like security fixes. At some point in the future when the wheel spec has solidified this will be viable, but for now it is irresponsible to version-lock pip the way distros do. |
|
The python cookbook only installs pip once and doesn't support pinning pip to a version, which is a problem if you spin up servers at different times. How do you recommend pinning the version of pip? Maybe something like this? include_recipe 'python'
python_pip 'pip' do
action :upgrade
version '1.5.6'
end |
Hi,
I'm trying to use this cookbook on Debian. I think it's better to install pip from packages. Is this a correct way to to this?