Download install.sh from FineEnvs/smoldataenv-multi-harness-opencode: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/FineEnvs/smoldataenv-multi-harness-opencode/resolve/main/install.sh
- Command line
-
hf download hf://spaces/FineEnvs/smoldataenv-multi-harness-opencode/install.sh
-
curl -L -o install.sh https://huggingface.co/spaces/FineEnvs/smoldataenv-multi-harness-opencode/resolve/main/install.sh
549 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| mkdir -p .deps | |
| if [[ ! -d .deps/OpenEnv/.git ]]; then | |
| git clone --depth 1 --branch main https://github.com/huggingface/OpenEnv.git .deps/OpenEnv | |
| else | |
| git -C .deps/OpenEnv pull --ff-only origin main | |
| fi | |
| python -m pip install -e .deps/OpenEnv -r requirements.txt | |
| python -m pip install --no-deps -e . | |
| python - <<'SETUP' | |
| from pathlib import Path | |
| import site | |
| Path(site.getsitepackages()[0], "openenv_examples.pth").write_text( | |
| str(Path(".deps/OpenEnv/envs").resolve()) + "\n" | |
| ) | |
| SETUP | |