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>
This commit is contained in:
Paul Belanger 2017-09-11 12:23:08 -04:00
parent 3c54ae46b1
commit bde44d13fc
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -125,7 +125,8 @@ Puppet::Type.type(:package).provide :pip3,
end
def self.pip3_cmd
['/usr/bin/python3-pip', '/usr/bin/pip3', '/usr/bin/pip-3.2', '/usr/bin/pip-3.3'].each do |p|
['/usr/local/bin/pip3', '/usr/bin/python3-pip', '/usr/bin/pip3',
'/usr/bin/pip-3.2', '/usr/bin/pip-3.3'].each do |p|
return p if File.exist?(p)
end
raise Puppet::Error, "Unable to find pip3 binary.";