Issue #7286 has been updated by Daniel Pittman.

James Turnbull wrote:

> Daniel - assigning to someone so a decision can be made.
> Jonathan - apologies the ball was dropped on this ticket.

Sorry - there have been a few tickets like this where code was submitted, but 
not as a pull request, and they got lost some time in the past.

I am a little concerned that this doesn't touch what I think it needs to: it 
doesn't look like it makes the environment part of the "identity" of the 
package type, so you couldn't install "foo" into both the root, and an 
environment.

Ultimately, though, right now the team isn't in a position to make a call on 
this: there are a pile of model problems - like this one - in the package type 
that we need to address.  I have attached this ticket to our roadmap with a 
view to having us sit down and figure out what the model should look like.  You 
can see that in the [[RoadMap]]
----------------------------------------
Feature #7286: Add virtualenv support to the pip package provider
https://projects.puppetlabs.com/issues/7286#change-64297

Author: Jonathan Stoppani
Status: Needs Decision
Priority: Normal
Assignee: Daniel Pittman
Category: provider
Target version: 
Affected Puppet version: 
Keywords: pip virtualenv python package
Branch: https://github.com/SMAC/puppet/tree/feature/master/7286


Now that #6527 is merged into master, it is possible to easily add support for 
virtualenvs and fully complete #3572.

A `virtualenv` argument could be added to the `package` type in order to 
instrument `pip` to install the requested package into the given virtualenv 
directory.

For example:
     
     package { "my-python-package":
         ensure => latest,
         provider => pip,
         virtualenv => "/path/to/virtualenv
     }

The content of the virtualenv parameter will be passed directly to the 
`--environment` parameter of the `pip install` command

Some references:

* [http://pypi.python.org/pypi/pip](http://pypi.python.org/pypi/pip)
* 
[http://www.pip-installer.org/en/latest/index.html#using-pip-with-virtualenv](http://www.pip-installer.org/en/latest/index.html#using-pip-with-virtualenv)
* 
[https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb](https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb)



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to