Closed Bug 1616312 Opened 6 years ago Closed 6 years ago

python2 was removed from homebrew

Categories

(Infrastructure & Operations :: RelOps: Posix OS, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dhouse, Assigned: dhouse)

Details

Attachments

(1 file)

"python2" was removed from homebrew. We still use it. So new installs fail.

This raises two concerns:

  1. fix the install
  2. can we stop installing python version 2 on workers?
python@2 was deleted from homebrew/core in commit 028f11f9e4:
  python@2: delete (https://github.com/Homebrew/homebrew-core/issues/49796)
  EOL 1 January 2020.
  We gave it 1 month more to live so that people had time to migrate.
  All in all, developers had 11 years to do their migration.
  You can use the `brew extract` command and maintain python@2 in your own
  tap if necessary:
  https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

To show the formula before removal run:
  git -C "$(brew --repo homebrew/core)" show 028f11f9e4^:Formula/python@2.rb

If you still use this formula consider creating your own tap:
  https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

workaround fix:

brew install "https://raw.githubusercontent.com/Homebrew/homebrew-core/3a877e3525d93cfeb076fc57579bdd589defc585/Formula/python@2.rb"

To use the same install we've been on.

Assignee: nobody → dhouse
Attached file workaround in puppet

linking to last-state for work-around to install from older homebrew hash when python2 existed.

This is stopped to try removing homebrew again instead (that was then stalled because of higher priority work).

The manual workaround I have been performing after reimages is:

cd $(brew --repository)/Library/Taps/homebrew/homebrew-core/
git checkout 3a877e3525d93cfeb076fc57579bdd589defc585
HOMEBREW_NO_AUTO_UPDATE=1 brew install python2

This moves homebrew back to before python2 was removed, and then installs it without updating the local clone.
Then puppet will find it is installed and not try installing it and failing when homebrew cannot find "python2".

We're removing homebrew from the workers. So I'll close this as won't-do

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: