generated from bids-apps/example
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·27 lines (20 loc) · 846 Bytes
/
Makefile
File metadata and controls
executable file
·27 lines (20 loc) · 846 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
# define the name of the virtual environment directory
VENV := venv
# default target, when make executed without arguments
all: venv
$(VENV)/bin/activate: requirements.txt
python3 -m venv $(VENV)
./$(VENV)/bin/pip install --upgrade pip
./$(VENV)/bin/pip install wheel==0.38.1
./$(VENV)/bin/pip install -r requirements.txt
./$(VENV)/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
./$(VENV)/bin/pip install bids-validator
# venv is a shortcut target
venv: $(VENV)/bin/activate
run: venv
$(VENV)/bin/python3 ./run.py $(VENV)/bin /bids_dir /out_dir participant --gpuid ${GPUID}
$(VENV)/bin/python3 ./run.py $(VENV)/bin /bids_dir /out_dir group --gpuid ${GPUID}
clean:
rm -rf $(VENV)
find . -type f -name '*.pyc' -delete
.PHONY: all venv run clean