-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
26 lines (20 loc) · 752 Bytes
/
setup-dev.sh
File metadata and controls
26 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Set up development environment
set -eu
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
VENV="${SCRIPT_DIR}/.venv"
if [ ! -d "${VENV}" ]; then
uv venv "${VENV}"
fi
source "${VENV}/bin/activate"
# Install dependencies
uv pip install pyyaml datalad datalad-container
# Install babs from our fork (mechababs-working-branch)
uv pip install "git+https://github.com/asmacdo/babs.git@mechababs-working-branch"
# Clone repronim/containers and get mriqc SIF (idempotent)
CONTAINERS_DS="${SCRIPT_DIR}/repronim-containers"
if [ ! -d "${CONTAINERS_DS}" ]; then
datalad clone https://github.com/ReproNim/containers.git "${CONTAINERS_DS}"
fi
# Get the mriqc container image
datalad -C "${CONTAINERS_DS}" get images/bids/bids-mriqc--24.0.2.sif