Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Fix python lib finding on OS X 10.10.4 #42717

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Library/Formula/swig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Swig < Formula

option :universal

patch :DATA
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please submit this patch to the upstream developers of this project and add a link to the upstream patch submission and explanation of why the patch is needed in a comment in the formula file. Thanks!


depends_on "pcre"

def install
Expand Down Expand Up @@ -46,3 +48,17 @@ def install
assert_equal "2", shell_output("ruby run.rb").strip
end
end
__END__
diff --git a/configure b/configure
index 8c2c463..eb036e6 100755
--- a/configure
+++ b/configure
@@ -7663,7 +7663,7 @@ $as_echo_n "checking for Python lib dir... " >&6; }
PYLIBDIR=`($PYTHON -c "import sys; sys.stdout.write(sys.lib)") 2>/dev/null`
if test -z "$PYLIBDIR"; then
# Fedora patch Python to add sys.lib, for other distros we assume "lib".
- PYLIBDIR="lib"
+ PYLIBDIR="$PYPREFIX/lib"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIBDIR" >&5
$as_echo "$PYLIBDIR" >&6; }