Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekTBrown committed Oct 18, 2024
1 parent a3a0185 commit 848b54b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/exec-env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# Ensure that Python shared libraries are in the LD_LIBRARY_PATH
# See: https://github.com/asdf-community/asdf-python/issues/168
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}"
ASDF_PY_LIB_PATH="${ASDF_INSTALL_PATH}/lib"

# Check if ASDF_PY_LIB_PATH is already in LD_LIBRARY_PATH
if [[ ":$LD_LIBRARY_PATH:" != *":$ASDF_PY_LIB_PATH:"* ]]; then
# Prepend ASDF_PY_LIB_PATH to LD_LIBRARY_PATH
LD_LIBRARY_PATH="${ASDF_PY_LIB_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
fi

export LD_LIBRARY_PATH

0 comments on commit 848b54b

Please sign in to comment.