Skip to content

Commit

Permalink
skip ci conda setup if unspecified env
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Mar 27, 2024
1 parent 1b52721 commit c11cda7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@ conda-config: conda-base ## setup configuration of the conda environment
@ "$(CONDA_BIN)" config --append channels conda-forge

.PHONY: conda-install
conda-install: conda-env
@echo "Updating conda packages..."
@bash -c '$(CONDA_CMD) conda install -y -c conda-forge proj'
conda-install:
@[ -z "$(CONDA_ENV)" ] && echo "Skipping conda environment setup [CONDA_ENV empty]" || ( \
echo "Setup conda environment..."; \
$(MAKE) -C "$(APP_ROOT)" conda-env \
)


.PHONY: conda-env
conda-env: conda-base conda-config ## create the conda environment
Expand Down

0 comments on commit c11cda7

Please sign in to comment.