-
-
Notifications
You must be signed in to change notification settings - Fork 374
Bootstrap pip installation #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,14 @@ | |
|
|
||
| case $python::provider { | ||
| pip: { | ||
| # Install pip without pip, see https://pip.pypa.io/en/stable/installing/. | ||
| exec { 'bootstrap pip': | ||
| command => 'curl https://bootstrap.pypa.io/get-pip.py | python', | ||
| creates => '/usr/local/bin/pip', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably not platform independent.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you do it @joshuaspence :-)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok |
||
| require => Package['python'], | ||
| } | ||
| Exec['bootstrap pip'] -> Package <| provider == pip |> | ||
|
|
||
| Package <| title == 'pip' |> { | ||
| name => 'pip', | ||
| provider => 'pip', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downloading scripts from the internet and running them makes baby jesus cry. Can't we just install the packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only done if you choose
pipas a provider.Generally I'd agree with you, but I couldn't think of a better way to do this whilst remaining cross-platform compatible.