Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1062

Add virtualenv support to the pip package provider

    XMLWordPrintable

Details

    Description

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

      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:

      Attachments

        Activity

          People

            jantman Jason Antman
            redmine.exporter redmine.exporter
            Eric Thompson Eric Thompson
            Votes:
            15 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support