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:
parent
3c54ae46b1
commit
bde44d13fc
@ -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.";
|
||||
|
Loading…
Reference in New Issue
Block a user