Skip to content

Commit

Permalink
chore: Support macOS in setup script (ODD) (#2594)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger authored Oct 30, 2023
1 parent 9ba6e12 commit 0547774
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Examples/Python/setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ export PYTHONPATH=$python_dir:$PYTHONPATH

# Make ODD available if possible
# This seems to be only reliable on Linux for now, not on MacOS
odd_dir=$python_dir/../thirdparty/OpenDataDetector/factory
if [ -d "$odd_dir" ] && [[ "$(uname -s)" -eq "Linux" ]]; then
echo "INFO: Found OpenDataDetector and set it up"
export LD_LIBRARY_PATH=$odd_dir:$LD_LIBRARY_PATH
if [ -d "$odd_dir" ]; then
if [[ "$(uname -s)" == "Linux" ]]; then
echo "INFO: Found OpenDataDetector and set it up"
export LD_LIBRARY_PATH=$odd_dir:$LD_LIBRARY_PATH
fi
if [[ "$(uname -s)" == "Darwin" ]]; then
echo "INFO: Found OpenDataDetector and set it up"
export DYLD_LIBRARY_PATH=$odd_dir:$DYLD_LIBRARY_PATH
fi
fi

# This message might seem excessive, but the Acts bindings are only installed
Expand Down

0 comments on commit 0547774

Please sign in to comment.