Commit Graph

3 Commits

Author SHA1 Message Date
Paul Belanger bde44d13fc
Support /usr/local/bin/pip3 as pip3 provider
It would be possible to only install pip3 from get-pip.py script and
not has system packages for pip3.

Change-Id: I7b9dabd73d9caef37db1564c4a8358f01f995c2f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-11 12:23:08 -04:00
Jeremy Stanley 5e7c0d558d Make pip3_cmd a class method.
* modules/pip/lib/puppet/provider/package/pip3.rb(pip3_cmd): The
instances class method was attempting to call the pip3_cmd instance
method, which does not work. Instead define a self.pip3_cmd method
it can call and then delegate the pip3_cmd instance method to that.
Also corrects an error message typo in passing.

Change-Id: I8a7b7ce353ac4293c2d7b82999402fa47dde6051
Reviewed-on: https://review.openstack.org/35708
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-07-12 22:46:21 +00:00
Dan Prince f73260ecd8 Add pip::python3 module and pip3 provider.
Adds python3 support to our pip package. Also adds a custom version
of the pip package provider which can be used when installing
things w/ python3-pip is explicitly required. For example:

  package { 'tox',
    provider => pip3,
    require  => Class[pip::python3],
  }

Change-Id: I1b563c8f7e647dad3a134ef1f0ec5b45b63f8b71
Reviewed-on: https://review.openstack.org/32451
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-06-24 21:54:56 +00:00