Files
OpenBB/openbb_sdk/install_all.sh
Pratyush Shukla 159ce741c6 pip to poetry
2023-09-05 19:10:33 +05:30

15 lines
447 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 extensions providers sdk -type f -name "pyproject.toml" -execdir sh -c '
echo "Installing $(basename "$PWD")..."
"$1" -m poetry install -C "${PWD}" >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Script terminated!"
exit 1
fi
' _ "$PYTHON_EXEC" {} +