Skip to content

Commit

Permalink
Existing vEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
peeti-ucberkeley committed Sep 2, 2024
1 parent 59cb39e commit 5e479b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ CONDA_RUN = conda run -n $(CONDA_ENV_NAME)

all: run

create_env:
@echo "Creating conda environment $(CONDA_ENV_NAME)..."
CONDA_SUBDIR=osx-arm64 conda env create -f environment.yml
create_or_update_env:
@echo "Checking if conda environment $(CONDA_ENV_NAME) exists..."
@if conda env list | grep -q "/$(CONDA_ENV_NAME)"; then \
echo "Updating existing conda environment $(CONDA_ENV_NAME)..."; \
CONDA_SUBDIR=osx-arm64 conda env update -f environment.yml; \
else \
echo "Creating conda environment $(CONDA_ENV_NAME)..."; \
CONDA_SUBDIR=osx-arm64 conda env create -f environment.yml; \
fi

install: create_env
@echo "Installing additional dependencies..."
Expand Down

0 comments on commit 5e479b8

Please sign in to comment.