-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.mk
30 lines (25 loc) · 663 Bytes
/
Makefile.mk
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
#
# Configuration variables
#
WORKDIR?=./MEDimage
REQUIREMENTS_TXT?=environment.yml
SETUP_PY?=setup.py
python_version := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1)))
#
# Virtual environment
#
.PHONY: create_environment
create_environment:
conda update --yes --name base --channel defaults conda
conda env create --name medimage --file environment.yml
.PHONY: clean
clean:
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
.PHONY: debug_env
debug_env:
@$(MAKE) --version
$(info Python="$(python_version)")
$(info REQUIREMENTS="$(REQUIREMENTS_TXT)")
$(info SETUP_PY="$(SETUP_PY)")
$(info WORKDIR="$(WORKDIR)")