Skip to content

Commit 07d6862

Browse files
author
Shiva Poudel
committed
Merge pull request voxpupuli#244 from joshuaspence/ensure_latest
Bootstrap pip installation
2 parents 9e8c5a1 + c9c9c2d commit 07d6862

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

manifests/install.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565

6666
case $python::provider {
6767
pip: {
68+
# Install pip without pip, see https://pip.pypa.io/en/stable/installing/.
69+
exec { 'bootstrap pip':
70+
command => 'curl https://bootstrap.pypa.io/get-pip.py | python',
71+
creates => '/usr/local/bin/pip',
72+
require => Package['python'],
73+
}
74+
Exec['bootstrap pip'] -> Package <| provider == pip |>
75+
6876
Package <| title == 'pip' |> {
6977
name => 'pip',
7078
provider => 'pip',

0 commit comments

Comments
 (0)