From 1ef31842c921dcb8a4e2045dc5664e509e4b25f2 Mon Sep 17 00:00:00 2001 From: Clayton McCray Date: Sat, 26 Sep 2020 18:06:00 -0500 Subject: [PATCH] Conda doesn't export functions to subshells build_unix_dev_conda.sh fails to activate the freecad_dev environment. This is issue #7980 on the conda github. This has one of the suggested work arounds added. --- build_unix_dev_conda.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_unix_dev_conda.sh b/build_unix_dev_conda.sh index acb576c829..01be6d7046 100755 --- a/build_unix_dev_conda.sh +++ b/build_unix_dev_conda.sh @@ -52,10 +52,12 @@ if [[ "${CONDA_DEFAULT_ENV}" =~ "${FCENV}" ]]; then echo "Already in env" elif [[ -z "${CONDA_DEFAULT_ENV}" ]]; then echo "Not in conda env... activating" + eval "$(conda shell.bash hook)" conda activate ${FCENV} else # Assume we are in some other env. echo "In ${CONDA_DEFAULT_ENV}, attempting switch to ${FCENV}" + eval "$(conda shell.bash hook)" conda deactivate conda activate ${FCENV} fi