Skip to content

Commit

Permalink
Update patch-activate.sh (#1033)
Browse files Browse the repository at this point in the history
Update the patch-activate.sh script to include both the lib64/ and lib/ sub-directories on systems that installs 64-bit libraries under lib64/.
  • Loading branch information
jesper-friis authored Dec 4, 2024
1 parent 668de12 commit b62c039
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/patch-activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ How to use this script:
1. Make sure that environment variable VIRTUAL_ENV is set to the
root directory of your virtual environments.
2. Activate your virtual environment.
3. Run `patch-activate.sh`
4. Deactivate and reactivate your virtual environment to ensure that
3. Install dlite
4. Run `patch-activate.sh`
5. Deactivate and reactivate your virtual environment to ensure that
LD_LIBRARY_PATH is properly set.
EOF
}
Expand All @@ -42,7 +43,8 @@ if [ -z "$VIRTUAL_ENV" ]; then
exit 1
fi

libdirs="\$VIRTUAL_ENV/lib"
#libdirs=$(python -c 'import pathlib, site; print(":".join([f"{p}/dlite" for p in site.getsitepackages() if pathlib.Path(f"{p}/dlite").exists()] + [str(pathlib.Path(p).parent.parent) for p in site.getsitepackages()]))')
libdirs=$(python -c 'import pathlib, site; print(":".join(str(pathlib.Path(p).parent.parent) for p in site.getsitepackages()))')

# Parse options
while true; do
Expand Down

0 comments on commit b62c039

Please sign in to comment.