Skip to content

Commit

Permalink
create a new temp_environment.yml file with python and django pinned …
Browse files Browse the repository at this point in the history
…for the test setup
  • Loading branch information
sdc50 committed Oct 30, 2024
1 parent f3c0028 commit 0879d7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install_tethys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,10 @@ then
then
# create conda env and install Tethys
echo "Setting up the ${CONDA_ENV_NAME} environment..."
conda env create -n ${CONDA_ENV_NAME} -f "${TETHYS_SRC}/environment.yml"
sudo sed "s/python>=.*/python=${PYTHON_VERSION}/" "${TETHYS_SRC}/environment.yml" > "${TETHYS_SRC}/temp_environment.yml"
sudo sed -i "s/django>=.*/django=${DJANGO_VERSION}/" "${TETHYS_SRC}/temp_environment.yml"
conda env create -n ${CONDA_ENV_NAME} -f "${TETHYS_SRC}/temp_environment.yml"
conda activate ${CONDA_ENV_NAME}
conda install -c conda-forge django=${DJANGO_VERSION} python=${PYTHON_VERSION}
pip install -e ${TETHYS_SRC}
else
echo "Activating the ${CONDA_ENV_NAME} environment..."
Expand Down

0 comments on commit 0879d7b

Please sign in to comment.