File size: 395 Bytes
1ebfbbf | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/env bash
set -euo pipefail
PYTHON_BIN="${PYTHON_BIN:-python3}"
if [[ -x /root/miniforge3/bin/python ]]; then
PYTHON_BIN=/root/miniforge3/bin/python
fi
"$PYTHON_BIN" -c 'import numpy; import axengine' 2>/dev/null || \
"$PYTHON_BIN" -m pip install -r "$(dirname "$0")/python/requirements.txt"
"$PYTHON_BIN" -c 'import numpy; import axengine'
echo "AX650 Python runtime is ready."
|