File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,12 +47,18 @@ endif
4747ifeq (,$(REQUIREMENTS_FILE ) )
4848$(error "Set REQUIREMENTS_FILE value before including 'conda.mk'.")
4949else
50- REQUIREMENTS_FILE := $(abspath $(TOP_DIR )$(SEP )$(REQUIREMENTS_FILE ) )
50+ REQUIREMENTS_FILE := $(abspath $(REQUIREMENTS_FILE ) )
51+ endif
52+ ifeq (,$(wildcard $(REQUIREMENTS_FILE ) ) )
53+ $(error "REQUIREMENTS_FILE ($(REQUIREMENTS_FILE)) does not exist!?")
5154endif
5255
5356ifeq (,$(ENVIRONMENT_FILE ) )
5457$(error "Set ENVIRONMENT_FILE value before including 'conda.mk'.")
55- ENVIRONMENT_FILE := $(abspath $(TOP_DIR )$(SEP )$(ENVIRONMENT_FILE ) )
58+ ENVIRONMENT_FILE := $(abspath $(ENVIRONMENT_FILE ) )
59+ endif
60+ ifeq (,$(wildcard $(ENVIRONMENT_FILE ) ) )
61+ $(error "ENVIRONMENT_FILE ($(ENVIRONMENT_FILE)) does not exist!?")
5662endif
5763
5864CONDA_ENV_NAME := $(strip $(patsubst name:% ,,$(CONDA_ENV_NAME_LINE ) ) )
You can’t perform that action at this time.
0 commit comments