Skip to content

Commit

Permalink
improve rationale for calling both apt-get and yum
Browse files Browse the repository at this point in the history
  • Loading branch information
David Marin committed Mar 17, 2015
1 parent 3505c6b commit 65450b3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mrjob/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1966,9 +1966,13 @@ def _parse_legacy_bootstrap(self):

# bootstrap_python_packages
if self._opts['bootstrap_python_packages']:
# 3.0.x AMIs use yum rather than apt-get;
# can't determine which AMI `latest` is at
# job flow creation time so we call both
# 1.x and 2.x AMIs use Debian (apt-get) and 3.x AMIs use
# Amazon Linux (yum). Who knows what 4.x AMIs will use?
#
# Rather than keeping mrjob in sync with AMI versions, just
# run whatever package manager works (until
# bootstrap_python_packages becomes obsolete, and we can
# rip this code out entirely)
bootstrap.append(['sudo apt-get install -y python-pip || '
'sudo yum install -y python-pip'])
# Print a warning
Expand Down

0 comments on commit 65450b3

Please sign in to comment.