From f0f4421fc81a40cca58649f79757b9822c74cc4f Mon Sep 17 00:00:00 2001 From: Pablo Olivares Date: Mon, 24 Jun 2024 22:02:40 +0200 Subject: [PATCH] Update Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cca5d9f..ad42329 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,10 @@ install: init @echo "Installing necessary packages into the Conda environment..." @if [ -f "$(ENV_FILE)" ]; then \ echo "Using $(ENV_FILE) to install packages..."; \ - conda env update --name $(ENV_NAME) --file $(ENV_FILE) --prune; \ + conda env update --prefix $(ENV_NAME) --file $(ENV_FILE) --prune; \ else \ echo "No $(ENV_FILE) found. Installing default packages..."; \ - conda run --name $(ENV_NAME) conda install --yes numpy pandas scipy matplotlib; \ + conda run --prefix $(ENV_NAME) conda install --yes numpy pandas scipy matplotlib; \ fi # Export the current environment to a YAML file, excluding build-specific fields @@ -44,7 +44,7 @@ export: .PHONY: update update: init @echo "Updating all packages in the Conda environment..." - @conda run --name $(ENV_NAME) conda update --all --yes + @conda run --prefix $(ENV_NAME) conda update --all --yes # Run tests using pytest within the Conda environment .PHONY: test