-
-
Notifications
You must be signed in to change notification settings - Fork 388
/
Makefile
46 lines (38 loc) · 1.38 KB
/
Makefile
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
40
41
42
43
44
45
.PHONY: check-docs docker docker-dev install-from-source clean
PYTHON ?= python
TAG=$(shell ${PYTHON} docker/collect_dependencies_hash.py)
check-docs:
bash ./bin/workflows/check_docs.sh
docker:
echo building $${REPO_NAME:-catalyst}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst}:$${TAG:-latest} . \
-f ./docker/Dockerfile --no-cache \
--build-arg PYTORCH_TAG=$$PYTORCH_TAG \
--build-arg CATALYST_DEV=$$CATALYST_DEV \
--build-arg CATALYST_CV=$$CATALYST_CV \
--build-arg CATALYST_ML=$$CATALYST_ML \
--build-arg CATALYST_OPTUNA=$$CATALYST_OPTUNA \
--build-arg CATALYST_ONNX=$$CATALYST_ONNX \
--build-arg CATALYST_ONNX_GPU=$$CATALYST_ONNX_GPU
docker-dev:
echo building $${REPO_NAME:-catalyst-dev}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst-dev}:$${TAG:-latest} . \
-f ./docker/Dockerfile --no-cache \
--build-arg PYTORCH_TAG=$$PYTORCH_TAG \
--build-arg CATALYST_DEV=$$CATALYST_DEV \
--build-arg CATALYST_CV=$$CATALYST_CV \
--build-arg CATALYST_ML=$$CATALYST_ML \
--build-arg CATALYST_OPTUNA=$$CATALYST_OPTUNA \
--build-arg CATALYST_ONNX=$$CATALYST_ONNX \
--build-arg CATALYST_ONNX_GPU=$$CATALYST_ONNX_GPU
install-from-source:
pip uninstall catalyst -y && pip install -e ./
clean:
rm -rf build/
docker rmi -f catalyst:latest
docker rmi -f catalyst-dev:latest
check:
catalyst-make-codestyle -l 89
catalyst-check-codestyle -l 89