From 0c74d3a3f5f0cd470a70917b361deeabfbe40dd0 Mon Sep 17 00:00:00 2001 From: ssun30 Date: Wed, 9 Oct 2024 15:35:25 -0400 Subject: [PATCH 1/2] Added custom condarc that disables default channel --- .github/workflows/CI.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 85a55fe20c..ac21dcc1a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -62,6 +62,16 @@ jobs: - name: Checkout RMG-Py uses: actions/checkout@v4 + # Step to create a custom condarc.yml before setting up conda + - name: Create custom conda config file + run: | + RUNNER_CWD=$(pwd) + echo "channels:" > $RUNNER_CWD/condarc.yml + echo " - conda-forge" >> $RUNNER_CWD/condarc.yml + echo " - rmg" >> $RUNNER_CWD/condarc.yml + echo " - cantera" >> $RUNNER_CWD/condarc.yml + echo "show_channel_urls: true" >> $RUNNER_CWD/condarc.yml + # configures the mamba environment manager and builds the environment - name: Setup Miniforge Python 3.7 uses: conda-incubator/setup-miniconda@v3 @@ -70,6 +80,7 @@ jobs: miniforge-variant: Miniforge3 miniforge-version: latest python-version: 3.7 + condarc-file: condarc.yml activate-environment: rmg_env use-mamba: true @@ -112,6 +123,16 @@ jobs: - name: Checkout RMG-Py uses: actions/checkout@v4 + # Step to create a custom condarc.yml before setting up conda + - name: Create custom condarc.yml + run: | + RUNNER_CWD=$(pwd) + echo "channels:" > $RUNNER_CWD/condarc.yml + echo " - conda-forge" >> $RUNNER_CWD/condarc.yml + echo " - rmg" >> $RUNNER_CWD/condarc.yml + echo " - cantera" >> $RUNNER_CWD/condarc.yml + echo "show_channel_urls: true" >> $RUNNER_CWD/condarc.yml + # configures the mamba environment manager and builds the environment - name: Setup Miniforge Python 3.7 uses: conda-incubator/setup-miniconda@v3 @@ -120,6 +141,7 @@ jobs: miniforge-variant: Miniforge3 miniforge-version: latest python-version: 3.7 + condarc-file: condarc.yml activate-environment: rmg_env use-mamba: true From 1b37764dc27ab9ed7a5b2f4c48bf74f2e83fc3ea Mon Sep 17 00:00:00 2001 From: ssun30 Date: Fri, 11 Oct 2024 13:33:29 -0400 Subject: [PATCH 2/2] Replaced nomkl in environment.yml --- environment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 8f12b696ae..da15b2dfe3 100644 --- a/environment.yml +++ b/environment.yml @@ -101,8 +101,8 @@ dependencies: # Note that _some other_ dep. in this list requires diffeqpy in its recipe # which will cause it to be downloaded from the rmg conda channel -# conda mutex metapackage - - nomkl +# configure packages to use OpenBLAS instead of Intel MKL + - blas=*=openblas # additional packages that are required, but not specified here (and why) # pydqed, pydas, mopac, and likely others require a fortran compiler (specifically gfortran)