File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,13 @@ jobs:
169
169
source "${BUILD_ENV_FILE}"
170
170
CONDA_LOCAL_CHANNEL="file://$(readlink -f ${{ inputs.repository }}/distr)"
171
171
172
+ # Please note these are required changes to make sure our conda environment take precedence before
173
+ # any other environments https://github.com/conda-incubator/setup-miniconda#conda-incubatorsetup-miniconda
174
+ # such as test environment created by default.
175
+ export PATH=$CONDA_ENV/bin:$CONDA_ENV:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
176
+ export Python3_ROOT_DIR=${CONDA_ENV}
177
+ export Python3_EXECUTABLE="${CONDA_ENV}"
178
+
172
179
export CONDA_ENV_SMOKE="${RUNNER_TEMP}/pytorch_pkg_helpers_${GITHUB_RUN_ID}_smoke"
173
180
conda create --yes --quiet --prefix "${CONDA_ENV_SMOKE}" python="${PYTHON_VERSION}"
174
181
export CONDA_RUN_SMOKE="conda run -p ${CONDA_ENV_SMOKE}"
You can’t perform that action at this time.
0 commit comments