Skip to content

Commit

Permalink
test: export 1
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 18, 2023
1 parent 8c0142e commit 04816ea
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions meson/this_iguana.sh.in
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
#!/bin/bash
# source this file to set environment variables for this iguana installation

set -x

# find the iguana installation prefix, with respect to this file
thisEnv=${BASH_SOURCE[0]:-$0}
thisDir=$(cd $(dirname $thisEnv)/.. && pwd -P)

# append to PKG_CONFIG_PATH
export PKG_CONFIG_PATH=$thisDir/lib/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}

# append to LD_LIBRARY_PATH
libdirs=(
$(pkg-config --variable hipo_libdir iguana)
$(pkg-config --variable libdir iguana)
)
for libdir in ${libdirs[*]}; do
[ -n "$libdir" ] && export LD_LIBRARY_PATH=$libdir${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
done

# append to PYTHONPATH
iguana_pythonpath=$(pkg-config --variable pythonpath iguana)
[ -n "$iguana_pythonpath" ] && export PYTHONPATH=$iguana_pythonpath${PYTHONPATH:+:${PYTHONPATH}}
# # append to LD_LIBRARY_PATH
# libdirs=(
# $(pkg-config --variable hipo_libdir iguana)
# $(pkg-config --variable libdir iguana)
# )
# for libdir in ${libdirs[*]}; do
# [ -n "$libdir" ] && export LD_LIBRARY_PATH=$libdir${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# done

set +x
# # append to PYTHONPATH
# iguana_pythonpath=$(pkg-config --variable pythonpath iguana)
# [ -n "$iguana_pythonpath" ] && export PYTHONPATH=$iguana_pythonpath${PYTHONPATH:+:${PYTHONPATH}}

0 comments on commit 04816ea

Please sign in to comment.