You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Homebrew formula to enable proper bottle creation
This commit properly fixes bottle relocation issues by addressing the root cause:
1. Removed pour_bottle? hack that disabled bottles entirely
2. Added LDFLAGS with -headerpad_max_install_names when compiling Python
packages to ensure C extensions (like orjson) have sufficient Mach-O
header padding for Homebrew's bottle relocation process
3. Force pip to compile from source (--no-binary :all:) instead of using
pre-built wheels, ensuring our LDFLAGS are applied during compilation
4. Changed shebang from #!/bin/bash to #!/usr/bin/env bash for better
portability and to satisfy brew audit checks
This allows the formula to create proper bottles in the homebrew-mfc tap
while maintaining fast installation times for users.
Fixes: 'Failed changing dylib ID' errors during bottling
Fixes: 'Non-executables were installed' audit warnings
0 commit comments