Download setup-mac.sh from Lucasgitguy-co/forma3d-tiny: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/Lucasgitguy-co/forma3d-tiny/resolve/main/setup-mac.sh
- Command line
-
hf download hf://Lucasgitguy-co/forma3d-tiny/setup-mac.sh
-
curl -L -o setup-mac.sh https://huggingface.co/Lucasgitguy-co/forma3d-tiny/resolve/main/setup-mac.sh
667 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| if ! command -v uv >/dev/null 2>&1; then | |
| echo 'Install uv first: brew install uv' >&2 | |
| exit 1 | |
| fi | |
| # Keep native libraries out of Documents, where macOS can offload their contents. | |
| FORMA3D_RUNTIME_DIR="${FORMA3D_RUNTIME_DIR:-$HOME/Library/Application Support/Forma3D}" | |
| export UV_CACHE_DIR="$FORMA3D_RUNTIME_DIR/uv-cache" | |
| mkdir -p "$FORMA3D_RUNTIME_DIR" | |
| uv venv --python 3.11 --allow-existing "$FORMA3D_RUNTIME_DIR/venv" | |
| uv pip install --python "$FORMA3D_RUNTIME_DIR/venv/bin/python" \ | |
| -r requirements-tested-macos.txt "$PWD[data,test]" | |
| "$FORMA3D_RUNTIME_DIR/venv/bin/python" -m image3d_student.cli doctor | |