8000 move setup to top per PR comments · wolfmib/pyscript_tutorial@769cc28 · GitHub
[go: up one dir, main page]

Skip to content

Commit 769cc28

Browse files
committed
move setup to top per PR comments
1 parent 3dc4d44 commit 769cc28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyscriptjs/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ CONDA_ENV ?= ./env
1010
env := $(CONDA_ENV)
1111
conda_run := conda run -p $(env)
1212

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+
1318
.PHONY: clean
1419
clean:
1520
find . -name \*.py[cod] -delete
@@ -18,11 +23,6 @@ clean:
1823
clean-all: clean
1924
rm -rf $(env) *.egg-info
2025

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-
2626
.PHONY: shell
2727
shell:
2828
@export CONDA_ENV_PROMPT='<{name}>'

0 commit comments

Comments
 (0)
0