From 26901721d575e9d119e0d90e738a75d7fd7e5406 Mon Sep 17 00:00:00 2001 From: "spaceBearAmadeus (Alex)" Date: Thu, 7 Nov 2024 13:45:09 -0500 Subject: [PATCH] update to env build --- assets/dev/scripts/create_env.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/assets/dev/scripts/create_env.sh b/assets/dev/scripts/create_env.sh index eeb726955..764720871 100755 --- a/assets/dev/scripts/create_env.sh +++ b/assets/dev/scripts/create_env.sh @@ -8,18 +8,20 @@ function construct_env { arm_platform=$(uname -a | grep "Darwin") echo "Creating environment from ./environment.yml on $arm_platform..." source /Users/alexanderpatrie/miniconda3/etc/profile.d/conda.sh - conda clean --all -y - conda run pip cache purge - conda run pip3 cache purge || echo "" + + # update base pip conda run pip3 install --upgrade pip conda run pip install --upgrade pip + + # create and activate env conda env create -f ./environment.yml -y conda activate bio-compose-server + + # install pysces and poetry deps conda install -n bio-compose-server -c conda-forge -c pysces pysces -y - conda run -n bio-compose-server poetry config virtualenvs.create false - conda run -n bio-compose-server poetry env use 3.10 - conda run -n bio-compose-server poetry lock + sudo conda run -n bio-compose-server poetry env use 3.10 + sudo conda run -n bio-compose-server poetry lock sudo conda run -n bio-compose-server poetry install --only=dev ./assets/dev/scripts/install-smoldyn-mac-silicon.sh || poetry run pip3 install smoldyn sudo conda run -n bio-compose-server poetry run pip3 install amici biosimulators-amici biosimulators-pysces