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

chore: Support macOS in setup script (ODD) #2594

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading