Open Bug 1924916 Opened 1 month ago Updated 21 days ago

`error: externally-managed-environment` with `mach install-moz-phab` on OS X / Homebrew Python 3.12+

Categories

(Firefox Build System :: Mach Core, defect, P3)

ARM64
macOS
defect

Tracking

(Not tracked)

People

(Reporter: shtrom, Unassigned)

References

Details

Homebrew-installed Python started marking the distro as externally managed since 3.12 https://github.com/orgs/Homebrew/discussions/3404#discussioncomment-8549228. This creates a similar issue to bug 1831442 and bug 1876182.

mach already installs MozPhab with --user and PIP_BREAK_SYSTEM_PACKAGES=1 for Linux, but not for OS X https://searchfox.org/mozilla-central/source/tools/phabricator/mach_commands.py#67-104. I think mach should now do a --user install on OS X, too.

Workaround in the meantime:
PIP_BREAK_SYSTEM_PACKAGES=1 ./mach install-moz-phab

OS: Unspecified → macOS
Hardware: Unspecified → ARM64
Version: unspecified → Trunk
See Also: → 183144, 1876182
URL: 1831442
See Also: 183144
URL: 1831442
See Also: → 1831442

Related: bug 1697357. You'll want to read the discussion there.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.