Files
OpenBB/openbb_sdk/install_all.sh
Igor Radovanovic 62e441fc29 Update nox
2023-09-18 12:57:05 +02:00

15 lines
493 B
Bash
Executable File
Vendored

#!/bin/bash
# Finds the current python executable
PYTHON_EXEC=$(which python)
# Install all openbb sdk (core+provider), extensions and providers in editable mode
find openbb_sdk/extensions openbb_sdk/providers openbb_sdk/sdk/core openbb_sdk/sdk/provider -type f -name "pyproject.toml" -execdir sh -c '
echo "Installing $(basename "$PWD")..."
"$1" -m poetry install -C "${PWD}"
if [ $? -ne 0 ]; then
echo "Script terminated!"
exit 1
fi
' _ "$PYTHON_EXEC" {} +