@@ -76,18 +76,18 @@ install_pre_dependencies() {
7676 export PATH=" $conda_dir :$PATH "
7777
7878 if [[ " $OS_TYPE " == " Darwin" ]]; then
79- log_info " Executing: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y"
80- conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y
79+ log_info " Executing: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y"
80+ conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y
8181 if [ $? -ne 0 ]; then
82- log_error " Failed to execute: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y"
82+ log_error " Failed to execute: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y"
8383 echo " PRE_DEPS_INSTALLED=false"
8484 exit 1
8585 fi
8686 else
87- log_info " Executing: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y"
88- conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y
87+ log_info " Executing: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y"
88+ conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y
8989 if [ $? -ne 0 ]; then
90- log_error " Failed to execute: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 gfortran pandas numpy -y"
90+ log_error " Failed to execute: conda run -n mhkit-matlab-env conda install pip hdf5 libnetcdf cftime netcdf4 pandas numpy -c conda-forge -y"
9191 echo " PRE_DEPS_INSTALLED=false"
9292 exit 1
9393 fi
@@ -213,7 +213,6 @@ install_mhkit_python_utils() {
213213 fi
214214}
215215
216- # Main execution
217216main () {
218217 local conda_path=" $1 "
219218 if [[ -z " $conda_path " ]]; then
@@ -233,5 +232,4 @@ main() {
233232 install_mhkit_python_utils " $conda_path "
234233}
235234
236- # Run main function
237- main " $@ "
235+ main " $@ "
0 commit comments