mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 06:22:18 +00:00
Added script to install all extensions and providers
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -76,3 +76,6 @@ openbb_sdk/sdk/core/openbb_core/app/static/package/
|
||||
|
||||
# lightning logs
|
||||
lightning_logs/
|
||||
|
||||
# user script to install all extensions and providers
|
||||
!openbb_sdk/install_all.sh
|
||||
|
||||
14
openbb_sdk/install_all.sh
vendored
Normal file
14
openbb_sdk/install_all.sh
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Finds the current python executable
|
||||
PYTHON_EXEC=$(which python)
|
||||
|
||||
# Install all openbb extensions and providers
|
||||
find extensions providers -type f -name "pyproject.toml" -execdir sh -c '
|
||||
echo "Installing $(basename "$PWD")..."
|
||||
"$1" -m pip install -U -e "${PWD}"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Script terminated!"
|
||||
exit 1
|
||||
fi
|
||||
' _ "$PYTHON_EXEC" {} +
|
||||
Reference in New Issue
Block a user