mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
Included extra modul parameter
This commit is contained in:
1 file changed
+10
-1
@@ -3,11 +3,20 @@ set -euo pipefail
|
||||
|
||||
: "${PYTHON:?PYTHON not set}"
|
||||
|
||||
EXTRA="${1:-}"
|
||||
|
||||
install_python_deps() {
|
||||
echo "📦 Installing Python dependencies"
|
||||
|
||||
"${PYTHON}" -m pip install --upgrade pip setuptools wheel
|
||||
"${PYTHON}" -m pip install -e .
|
||||
|
||||
if [[ -n "${EXTRA}" ]]; then
|
||||
echo "→ Installing with extras: [${EXTRA}]"
|
||||
"${PYTHON}" -m pip install -e ".[${EXTRA}]"
|
||||
else
|
||||
echo "→ Installing base package"
|
||||
"${PYTHON}" -m pip install -e .
|
||||
fi
|
||||
}
|
||||
|
||||
install_python_deps
|
||||
Reference in new issue
Block a user