-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 1.04 KB
/
Makefile
File metadata and controls
29 lines (24 loc) · 1.04 KB
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
27
28
29
VENV_DIR = .venv
VENV_BIN = $(VENV_DIR)/bin
PYTHON3 = $(VENV_BIN)/python3
PYTEST = $(VENV_BIN)/pytest
install:
test -d .venv || (python3 -m venv .venv && echo "\033[92mVirtual environment is created successfully.\033[0m")
echo "\033[92m" && $(PYTHON3) --version && echo "\033[0m"
$(PYTHON3) -m pip install --upgrade pip
$(PYTHON3) -m pip install torch==2.8.0 torchvision --index-url "https://download.pytorch.org/whl/cpu" && \
$(PYTHON3) -m pip install -r requirements.txt
gpu_install:
test -d .venv || (python3 -m venv .venv && echo "\033[92mVirtual environment is created successfully.\033[0m")
echo "\033[92m" && $(PYTHON3) --version && echo "\033[0m"
$(PYTHON3) -m pip install --upgrade pip
$(PYTHON3) -m pip install torch==2.8.0 torchvision
$(PYTHON3) -m pip install -r requirements.txt
dev_install:
$(PYTHON3) -m pip install -e .
test:
$(PYTEST) tests
pep8:
# Don't remove their commented follwing command lines:
# autopep8 --in-place --aggressive --aggressive --recursive .
# autopep8 --in-place --aggressive --aggressive example.py