Skip to content

Commit

Permalink
Adding environment variables in setup_project
Browse files Browse the repository at this point in the history
Adding environment variables in setup_project
Minor changes
  • Loading branch information
Amin authored and Amin committed Jan 23, 2024
1 parent 2494bfe commit 89abaa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions {{ cookiecutter.repo_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#################################################################################

PROJECT_NAME = {{ cookiecutter.project_name }}
PROJECT_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
PYTHON_VERSION = {{ cookiecutter.python_version }}
PYTHON_INTERPRETER = python

Expand All @@ -21,6 +22,8 @@ setup_project:
@echo "Creating and setting up the environment..."
@conda create --name $(PROJECT_NAME) python=$(PYTHON_VERSION) --no-default-packages -y && \
conda activate $(PROJECT_NAME) && \
conda env config vars set PROJECT_NAME="$(PROJECT_NAME)" -n $(PROJECT_NAME) && \
conda env config vars set PROJECT_ROOT="$(PROJECT_ROOT)" -n $(PROJECT_NAME) && \
python -m pip install -U pip setuptools wheel && \
python -m pip install -r requirements.txt && \
python -m pip install -e . && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def commit_experiment():
and commits the current state of the repository there.
Returns:
tuple: A tuple containing the experiment commit message and the its hash.
tuple: A tuple containing the experiment commit message and its hash.
"""

# Logic of the code:
Expand Down

0 comments on commit 89abaa1

Please sign in to comment.