Jira (PUP-1082) pip provider should handle multiple pips/pythons

16 views
Skip to first unread message

Liam Monahan (JIRA)

unread,
Jul 16, 2015, 3:11:16 PM7/16/15
to puppe...@googlegroups.com
Liam Monahan updated an issue
 
Puppet / Bug PUP-1082
pip provider should handle multiple pips/pythons
Change By: Liam Monahan
The Pip provider should provide a way to specify the path to pip.  This would allow people to manage multiple python installs, by  point  pointing  to the one they want to install into.  

In RHEL, this makes it easy to have a non-system python installed somewhere (ie: 2.7 or 3.x) and let puppet manage the python packages.

This is related to bug #15980.  (related in the way that if you could provide the path to the pip binary, 15980 would have a workaround).
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.5#64020-sha1:78acd6c)
Atlassian logo

drew j (JIRA)

unread,
Sep 2, 2016, 6:17:03 AM9/2/16
to puppe...@googlegroups.com
drew j commented on Bug PUP-1082
 
Re: pip provider should handle multiple pips/pythons

Hello,

This issue has been outstanding for almost three years and I wondered whether any movement has been made to resolve it?

As it currently stands, the pip provider for the Package resource can manage packages for the system installed version of pip. It's not possible to manage packages for virtualenvs, etc.

It would be nice if there was a method to pass in the path to the pip binary to use for operations related to this provider.

For example,

  package { $pkg_name:
    ensure   => present,
    provider => 'pip',
    pip_path => '/opt/myvirtualenv/venv/bin/pip',
  }

To me, this seems like a useful enhancement of this package and will reduce the need for people to use Execs to get this to work correctly.

Thanks,
Drew

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

Thomas Kishel (JIRA)

unread,
Feb 24, 2017, 2:10:03 PM2/24/17
to puppe...@googlegroups.com
Thomas Kishel commented on Bug PUP-1082

This is a repeat of comments I've made elsewhere....

Reviewing our list of package providers, I identify two types of providers: single-instance and multiple-instance. For the single-instance providers, such as yum, there should be only one executable, and it should be in PATH. For multiple-instance providers, such as gem and pip, there could be n-number of instances, each with its own executable and none of them may be in PATH. We recognize this with our puppet_gem provider, which differs from the gem provider only in that it uses an absolute path for gemcmd (except on Windows).

The provider attribute of a package is, in practice, overloaded as a command attribute: but provider does not accept an absolute path. An optional command attribute for providers (as implemented in the Exec resource type) would support multiple-instance providers without requiring a custom provider type for each provider instance.

Note that implementing the command attribute to support multiple-instance packages via a specific command executable will require adding the command attribute to self.title_patterns in lib/puppet/type/package.rb to maintain uniqueness via a composite uniqueness key. For example: ['sinatra', 'gem', '/usr/bin/gem'].

See also:

https://tickets.puppetlabs.com/browse/PUP-6134

John Duarte (JIRA)

unread,
May 15, 2017, 2:09:04 PM5/15/17
to puppe...@googlegroups.com

John Duarte (JIRA)

unread,
May 15, 2017, 2:09:06 PM5/15/17
to puppe...@googlegroups.com
John Duarte updated an issue
Change By: John Duarte
Labels: pip redmine  triaged

John Duarte (JIRA)

unread,
May 15, 2017, 2:10:04 PM5/15/17
to puppe...@googlegroups.com
John Duarte assigned an issue to Eric Sorenson
Change By: John Duarte
Assignee: Eric Sorenson

John Duarte (JIRA)

unread,
May 15, 2017, 2:10:05 PM5/15/17
to puppe...@googlegroups.com
John Duarte updated an issue
Change By: John Duarte
Labels: needs_decision pip redmine triaged

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:22 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: needs_decision pip redmine  triaged

Branan Riley (JIRA)

unread,
May 9, 2018, 2:36:03 PM5/9/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: needs_decision package pip redmine triaged type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 14, 2018, 7:47:06 PM5/14/18
to puppe...@googlegroups.com
Branan Riley assigned an issue to Unassigned
Change By: Branan Riley
Assignee: Eric Sorenson

Branan Riley (JIRA)

unread,
Mar 25, 2019, 5:11:04 AM3/25/19
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Team: Platform OS Puppet Romania

Branan Riley (JIRA)

unread,
Mar 25, 2019, 5:11:06 AM3/25/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Apr 3, 2019, 5:57:04 AM4/3/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage 2019-04-17

Sebastian Miclea (JIRA)

unread,
Apr 10, 2019, 5:26:04 AM4/10/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Apr 17, 2019, 5:35:09 AM4/17/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - 2019-04-17 , PR - 2019-05-02

Mihai Buzgau (JIRA)

unread,
May 2, 2019, 5:21:08 AM5/2/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - 2019-04-17, PR - 2019-05-02 , PR - 2019-05-15

Sebastian Miclea (JIRA)

unread,
May 15, 2019, 5:22:05 AM5/15/19
to puppe...@googlegroups.com
Sebastian Miclea commented on Bug PUP-1082
 
Re: pip provider should handle multiple pips/pythons

Thomas Kishel Could you please update with the ticket with docs?

Mihai Buzgau (JIRA)

unread,
May 15, 2019, 5:29:08 AM5/15/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - 2019-04-17, PR - 2019-05-02, PR - 2019-05-15 , PR - 2019-05-29

Mihai Buzgau (JIRA)

unread,
May 29, 2019, 5:22:08 AM5/29/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - 2019-04-17, PR - 2019-05-02, PR - 2019-05-15, PR - 2019-05-29 , PR - 2019-06-12

Sebastian Miclea (JIRA)

unread,
Jun 7, 2019, 7:45:06 AM6/7/19
to puppe...@googlegroups.com
Sebastian Miclea updated an issue
Change By: Sebastian Miclea
Release Notes Summary: Added the possibility for providers to implement targetable package command for pip and pip3. This allows adding a custom path to pip/pip3.


In RHEL, this makes it easy to have a non-system python installed somewhere (ie: 2.7 or 3.x) and let puppet manage the python packages
Release Notes: Enhancement

Oana Tanasoiu (JIRA)

unread,
Jun 10, 2019, 3:01:04 AM6/10/19
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
Change By: Oana Tanasoiu
Fix Version/s: PUP 6.5.0

Heston Hoffman (JIRA)

unread,
Jun 12, 2019, 6:08:05 PM6/12/19
to puppe...@googlegroups.com
Heston Hoffman updated an issue
Change By: Heston Hoffman
Labels: package pip redmine resolved-issue-added type_and_provider

Gheorghe Popescu (JIRA)

unread,
Jul 3, 2019, 4:38:03 AM7/3/19
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Fix Version/s: PUP 6.4.3
Fix Version/s: PUP 6.0.10
Fix Version/s: PUP 5.5.15
Reply all
Reply to author
Forward
0 new messages