So... I'm compiling my Python environment with MacPorts, and then stuff on top of that with EasyBuild. Why MacPorts? Because I just want it built, and lots of patches are required to compile any other way. It's one big **** mess.
Anyway... I've found that setting (DY)LD_LIBRARY_PATH to include the MacPorts directory breaks various Python modules. To be specific: it causes the Mac loader to find dynamic libraries from MacPorts instead of the /System path. This bug is described here: https://lists.macosforge.org/pipermail/macports-users/2010-November/022662.html I'm compiling my stuff (libraries and Python extensions) with rpath. So I don't need DYLD_LIBRARY_PATH. The solution, for now, is to run Python without any DYLD_LIBRARY_PATH. But this is convincing me that enforcing RPATH on all compiles, as is done in Spack, should be a high priority for EasyBuild. -- Elizabeth

