Skip to content

Commit

Permalink
conda support
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenhariri committed Jul 22, 2024
1 parent 9256472 commit 950a8e7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ ENV_JUPYTER := $(ENV_PATH_ROOT)/jupyter
JUPYTER_PORT := 3000

ifeq ($(strip $(VIRTUAL_ENV)),)
PATH := $(ENV_PATH)/$(ENV_NAME)/bin:$(PATH)
PY := $(ENV_PATH)/$(ENV_NAME)/bin/python
else
ifeq ($(strip $(CONDA_PREFIX)),)
PATH := $(ENV_PATH)/$(ENV_NAME)/bin:$(PATH)
PY := $(ENV_PATH)/$(ENV_NAME)/bin/python
else
PATH := $(CONDA_PREFIX)/bin:$(PATH)
PY := $(CONDA_PREFIX)/bin/python
endif
else
PATH := $(VIRTUAL_ENV)/bin:$(PATH)
PY := $(VIRTUAL_ENV)/bin/python
endif
Expand Down

0 comments on commit 950a8e7

Please sign in to comment.