File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ CONDA_ENV ?= ./env
10
10
env := $(CONDA_ENV )
11
11
conda_run := conda run -p $(env )
12
12
13
+ .PHONY : setup
14
+ setup :
15
+ @if [ -z " $$ {CONDA_SHLVL:+x}" ]; then echo " Conda is not installed." && exit 1; fi
16
+ $(CONDA_EXE ) env $(shell [ -d $(env ) ] && echo update || echo create) -p $(env ) --file environment.yml
17
+
13
18
.PHONY : clean
14
19
clean :
15
20
find . -name \* .py[cod] -delete
@@ -18,11 +23,6 @@ clean:
18
23
clean-all : clean
19
24
rm -rf $(env ) * .egg-info
20
25
21
- .PHONY : setup
22
- setup :
23
- @if [ -z " $$ {CONDA_SHLVL:+x}" ]; then echo " Conda is not installed." && exit 1; fi
24
- $(CONDA_EXE ) env $(shell [ -d $(env ) ] && echo update || echo create) -p $(env ) --file environment.yml
25
-
26
26
.PHONY : shell
27
27
shell :
28
28
@export CONDA_ENV_PROMPT=' <{name}>'
You can’t perform that action at this time.
0 commit comments