Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass DYLD_FALLBACK_LIBRARY_PATH to scons #737

Merged

Conversation

mjuric
Copy link
Contributor

@mjuric mjuric commented Apr 10, 2016

This makes it easier to build GalSim against buggy Python builds (such as the one shipping with Anaconda; see ContinuumIO/anaconda-issues#498).

Note: in most cases one can get away with adding the path to libpython*.dyld onto DYLD_LIBRARY_PATH, but having it on DYLD_FALLBACK_LIBRARY_PATH ensures nothing else gets picked up from it that would otherwise get picked up from system paths. E.g., Anaconda also ships with libz, but one probably wants to build against the system version, not the Anaconda one.

Related issues: https://jira.lsstcorp.org/browse/SIM-1895, lsst-dm/legacy-galsim#9

This makes it easier to build GalSim against buggy Python builds (such as
the one shipping with Anaconda; see
ContinuumIO/anaconda-issues#498).
@rmjarvis
Copy link
Member

All looks fine to me. Thanks, Mario. I wasn't aware of this FALLBACK set of environment variables. I certainly don't have a problem with treating this one the same way as the others we do this for.

Do you need me to cherry-pick this over to the 1.3 branch (and make a new revision there)? Or is this ok just being included in version 1.4 (probably <~ 1 month away)?

@mjuric
Copy link
Contributor Author

mjuric commented Apr 10, 2016

Hi @rmjarvis -- merging to master only is fine, thanks!

@rmandelb
Copy link
Member

Sounds good to me.

@rmjarvis rmjarvis merged commit 78f4d2a into GalSim-developers:master Apr 10, 2016
@cwwalter
Copy link
Member

Hi All,

Do we need have both this and the DYLD_LIBRARY_PATH option which we added at SLAC?

@rmjarvis
Copy link
Member

I think most of the time, DYLD_LIBRARY_PATH is sufficient. But Mario wanted the ability to put things in the DYLD_FALLBACK_LIBRARY_PATH as well. I guess it can make it easier to build in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants