Issue #7286 has been updated by Jason Antman.

Daniel, is there any update on this?

I'm about to post a thread to puppet-users regarding this. It's seeming to me, 
after doing some more research, that the current "package" provider is married 
to system-wide/global packages only (also puppetlabs-nodejs using a native 
provider for global npm packages and a defined type for local ones seems to 
substantiate this). I'm starting to believe that this feature may be impossible 
within the current package type, and would require another type - something 
specific to packages in isolated/non-system-wide environments.

----------------------------------------
Feature #7286: Add virtualenv support to the pip package provider
https://projects.puppetlabs.com/issues/7286#change-101385

* Author: Jonathan Stoppani
* Status: Needs Decision
* Priority: Normal
* Assignee: Jason Antman
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to