elysian-noctilucent-algebra / code /run_verification.sh
PureOne's picture
Publish ELYSIAEN complete research dataset release
973efa6 verified
Raw History Blame Contribute Delete
513 Bytes
#!/usr/bin/env sh
set -eu
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
for candidate in python3 python; do
if command -v "$candidate" >/dev/null 2>&1 && "$candidate" -c 'import sys; raise SystemExit(0 if sys.version_info >= (3,10) else 1)' >/dev/null 2>&1; then
exec "$candidate" "$SCRIPT_DIR/run_all.py" "$@"
fi
done
echo 'Python 3.10 or later was not found. Select an installed compatible runtime.' >&2
echo 'This launcher installs no runtime or dependency automatically.' >&2
exit 2