Skip to content

Commit be10bee

Browse files
committed
Fix Homebrew formula: disable bottles to avoid relocation errors
The homebrew-mfc tap CI was failing with 'Failed changing dylib ID' errors when trying to relocate compiled Python C extensions (orjson.so) in the venv. Added pour_bottle? method returning false to disable bottles entirely, forcing source builds. This is the correct approach for formulas with Python venvs containing compiled extensions that cannot be relocated. The previous skip_relocation! directive was incorrect as it's only valid inside a bottle block, not at the class level.
1 parent e21c453 commit be10bee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packaging/homebrew/mfc.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class Mfc < Formula
2121
depends_on "openblas"
2222
depends_on "[email protected]"
2323

24+
# Disable bottles due to Python venv with compiled extensions that can't be relocated
25+
def pour_bottle?
26+
false
27+
end
28+
2429
def install
2530
# Create Python virtual environment inside libexec (inside Cellar for proper bottling)
2631
venv = libexec/"venv"

0 commit comments

Comments
 (0)