Jira (PUP-7526) no pip2 package provider when pip3 is system default

27 views
Skip to first unread message

Alex Page (JIRA)

unread,
May 12, 2017, 2:49:02 PM5/12/17
to puppe...@googlegroups.com
Alex Page created an issue
 
Puppet / Improvement PUP-7526
no pip2 package provider when pip3 is system default
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2017/05/12 11:48 AM
Priority: Minor Minor
Reporter: Alex Page

If the pip command on a puppet client points to the pip3 binary (instead of the more typical pip2), then there is no difference between installing packages with puppet's pip provider vs. the pip3 provider. Consequently, there isn't a clean way to force using pip2 on such a client. To resolve this, I would suggest adding a pip2 package provider.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Alex Page (JIRA)

unread,
May 12, 2017, 2:51:02 PM5/12/17
to puppe...@googlegroups.com
Alex Page updated an issue
Change By: Alex Page
If the {{pip}} command on a puppet client points to the {{pip3}} binary (instead of the more typical {{pip2}}), then there is no difference between installing packages with puppet's {{pip}} provider vs. the {{pip3}} provider.  Consequently, there isn't a clean way to  force using {{pip2}}  install Python 2 packages  on such a client.  To resolve this, I would suggest adding a {{pip2}} package provider.

Josh Cooper (JIRA)

unread,
May 16, 2017, 7:28:05 PM5/16/17
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
May 18, 2017, 2:03:20 PM5/18/17
to puppe...@googlegroups.com

Andrey Galkin (JIRA)

unread,
Apr 24, 2018, 10:17:03 PM4/24/18
to puppe...@googlegroups.com
Andrey Galkin commented on Improvement PUP-7526
 
Re: no pip2 package provider when pip3 is system default

Confirm the problem on pip installed into "/usr/local/bin" - not through system packages.

Actual "/usr/local/bin/pip" is undefined as it depends on order of installation/update of Python 2 vs 3 version.

Solution is as simple as copy of "pip3.rb" to "pip2.rb" with dumb replacement of "pip3" with "pip2" string.

That would ensure fine control of which Python version to use.

This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 14, 2018, 3:18:03 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
 
Change By: Branan Riley
Labels: package pip triaged type_and_provider

James Glenn (Jira)

unread,
Aug 28, 2020, 2:06:03 PM8/28/20
to puppe...@googlegroups.com
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

James Glenn (Jira)

unread,
Sep 3, 2020, 4:17:04 AM9/3/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Oct 12, 2020, 9:22:03 AM10/12/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
 
Change By: Claire Cadman
Labels: doc_reviewed package pip platform-os type_and_provider

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:51:05 AM11/5/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:52:04 AM11/5/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage
Reply all
Reply to author
Forward
0 new messages