#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "${ROOT_DIR}" export http_proxy="${http_proxy:-http://100.72.0.101:8888}" export https_proxy="${https_proxy:-http://100.72.0.101:8888}" export HTTP_PROXY="${HTTP_PROXY:-${http_proxy}}" export HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy}}" export PIP_INDEX_URL="${PIP_INDEX_URL:-https://mirrors.aliyun.com/pypi/simple/}" python3 -m venv .venv source .venv/bin/activate python -m pip install -U pip setuptools wheel python -m pip install -e . python -m pip install -e third_party/modelscope-swift mkdir -p data/raw data/processed models outputs runs logs python - <<'PY' import swift, sys print("python", sys.version) print("swift", getattr(swift, "__version__", "unknown")) PY