-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Fix python lib finding on OS X 10.10.4 #42717
Conversation
Everything should be linked against the system Python, per Homebrew's policy. The only things that should be linked against Homebrew's Python are things which are |
The gnuradio formula I found (metacollin/homebrew-gnuradio) depends_on :python. Does this mean this commit won't be accepted? Is it a better idea to introduce a swig patch via the gnuradio formula? |
@tdsmith is the Python genius, I'll let him comment, but it seems unlikely that we'll be happy to accept this. The |
I'm surprised this has an effect and I'd like to understand why. Specifically what does this influence? What happens without this patch, and what does this patch change? Which files are affected, and why? |
Hi @tdsmith, and sorry, I went back and checked and that's not the only thing that I had to change. I also had to In any case, prior to patch, and after exporting python environment variable, the ./configure script will give you
With patch you get
It took me until right now to notice that this might actually just trade off autoconf's entries for 'lib dir' and 'library directory'... Apologies for the confusion, this is the first PR I've ever made. |
@@ -12,6 +12,8 @@ class Swig < Formula | |||
|
|||
option :universal | |||
|
|||
patch :DATA |
There was a problem hiding this comment.
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!
Closing as dead. Please do feel free to reopen if you wish to with the comments addressed. Thank you for your submission to Homebrew ❤️ |
While trying to install gnuradio I had some issues with python crashing ("PyThreadState_Get: no current thread Abort trap: 6"-type fatal errors) which I narrowed down to swig using the system library when everything else was linked against my homebrew python. This patch fixes that.