| 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." | |