Skip to content

Commit

Permalink
python-is-python3 (#182)
Browse files Browse the repository at this point in the history
This restores 'python' as an available binary, aliased to 'python3'.

We deem this the better alternative to not having it, because programs might invoke 'python', and a 'command not found' error would presumably much more confusing than a Python 3 related error (and those should be getting pretty rare now anyway). Same for anything that has a '/usr/bin/env python' or similar shebang.

Previous stacks have 'python' aliased to 'python2', but given how that's (finally) EOL, we'd only be kicking painful migrations down the road, and people upgrading stacks are already touching their code base anyway, so better to rip the bandaid off in one go.
  • Loading branch information
dzuelke authored Oct 5, 2020
1 parent 64af8ea commit 454f173
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions heroku-20-build/installed-packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ postgresql-client-common
postgresql-common
postgresql-server-dev-12
procps
python-is-python3
python2
python2-minimal
python2.7
Expand Down
1 change: 1 addition & 0 deletions heroku-20/installed-packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ poppler-data
postgresql-client-12
postgresql-client-common
procps
python-is-python3
python3
python3-minimal
python3.8
Expand Down
1 change: 1 addition & 0 deletions heroku-20/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ apt-get install -y --no-install-recommends \
openssh-server \
patch \
postgresql-client-12 \
python-is-python3 \
python3 \
rename \
rsync \
Expand Down

0 comments on commit 454f173

Please sign in to comment.