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

Fix an issue when LD_LIBRARY_PATH is overriden in a Conda environment #1540

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

romain-intel
Copy link
Contributor

In a Conda environment, it is sometimes necessary to set LD_LIBRARY_PATH to first include the Conda's environment libraries before anything else.

This, however, causes problems with the escape hatch which uses this same modified LD_LIBRARY_PATH outside of the Conda environment. This patch fixes this issue by using the convention that, if a Conda environment modifies LD_LIBRARY_PATH, it will save the original LD_LIBRARY_PATH in MF_ORIG_LD_LIBRARY_PATH.

In a Conda environment, it is sometimes necessary to set LD_LIBRARY_PATH to
first include the Conda's environment libraries before anything else.

This, however, causes problems with the escape hatch which uses this same
modified LD_LIBRARY_PATH *outside* of the Conda environment. This patch
fixes this issue by using the convention that, if a Conda environment
modifies LD_LIBRARY_PATH, it will save the original LD_LIBRARY_PATH
in MF_ORIG_LD_LIBRARY_PATH.
@savingoyal savingoyal merged commit 4fc2d1f into master Sep 15, 2023
20 checks passed
@savingoyal savingoyal deleted the fix/ld-lib-path-escape-hatch branch September 15, 2023 18:00
emattia pushed a commit to emattia/metaflow that referenced this pull request Sep 17, 2023
…Netflix#1540)

In a Conda environment, it is sometimes necessary to set LD_LIBRARY_PATH to
first include the Conda's environment libraries before anything else.

This, however, causes problems with the escape hatch which uses this same
modified LD_LIBRARY_PATH *outside* of the Conda environment. This patch
fixes this issue by using the convention that, if a Conda environment
modifies LD_LIBRARY_PATH, it will save the original LD_LIBRARY_PATH
in MF_ORIG_LD_LIBRARY_PATH.
savingoyal pushed a commit that referenced this pull request Sep 27, 2023
…#1540)

In a Conda environment, it is sometimes necessary to set LD_LIBRARY_PATH to
first include the Conda's environment libraries before anything else.

This, however, causes problems with the escape hatch which uses this same
modified LD_LIBRARY_PATH *outside* of the Conda environment. This patch
fixes this issue by using the convention that, if a Conda environment
modifies LD_LIBRARY_PATH, it will save the original LD_LIBRARY_PATH
in MF_ORIG_LD_LIBRARY_PATH.
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.

None yet

2 participants