-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 901 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 901 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
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: create_environment requirements clean data
## GLOBALS
PYTHON_INTERPRETER = python
### DEV COMMANDS
## Set up python interpreter environment
create_environment:
$(PYTHON_INTERPRETER) -m venv .venv
@echo ">>> venv created. Activate with:\nsource .venv/bin/activate"
## Install Python Dependencies
requirements:
$(PYTHON_INTERPRETER) -m pip install torch torchvision torchaudio
$(PYTHON_INTERPRETER) -m pip install wheel
$(PYTHON_INTERPRETER) -m pip install -r requirements.txt
$(PYTHON_INTERPRETER) -m pip install -e .
data: requirements
$(PYTHON_INTERPRETER) src/dataset.py
# ### DOCS
# NOTE: Commenting out docs for now since we currently have no documentation
# docs:
# cd docs && mkdocs build
# docs-serve:
# cd docs && mkdocs serve
## Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete