diff --git a/tools/conda_env.fish b/tools/conda_env.fish new file mode 100755 index 000000000..0838944d8 --- /dev/null +++ b/tools/conda_env.fish @@ -0,0 +1,22 @@ +#!/usr/bin/env fish + +set ENV_NAME $argv[1] +set PACKAGE_NAME $argv[2] +set PYTHON_VERSION $argv[3] + +if test -z "$PYTHON_VERSION" + set PYTHON_VERSION 3.11 +end + +conda create -n $ENV_NAME python=$PYTHON_VERSION --no-default-packages -y +conda activate $ENV_NAME +conda config --add channels conda-forge +conda config --set channel_priority strict +conda install mamba -y + +# Install spectrafit-all package +mamba install spectrafit-all -y +# Install an dditional package if provided +if test -n "$PACKAGE_NAME" + mamba install $PACKAGE_NAME -y +end diff --git a/tools/conda_env.zsh b/tools/conda_env.zsh new file mode 100644 index 000000000..e46bd4d44 --- /dev/null +++ b/tools/conda_env.zsh @@ -0,0 +1,18 @@ +#!/usr/bin/env zsh + +ENV_NAME=$1 +PACKAGE_NAME=$2 +PYTHON_VERSION=${3:-3.11} + +conda create -n $ENV_NAME python=$PYTHON_VERSION --no-default-packages +conda activate $ENV_NAME +conda config --add channels conda-forge +conda config --set channel_priority strict +conda install mamba -y + +# Install spectrafit-all package +mamba install spectrafit-all -y +# Install an dditional package if provided +if [[ -n $PACKAGE_NAME ]]; then + mamba install $PACKAGE_NAME -y +fi