Skip to content

Commit 5b337e9

Browse files
Declare pip as explicit dep (#19322)
Job is a little flakey as sometimes the runner doesn't contain pip. This adds it as an explicit dep.
1 parent 6a8d341 commit 5b337e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.ci/scripts/test_coreml_bc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source "${REPO_ROOT}/.ci/scripts/utils.sh"
2323
# Create a conda environment with Python 3.10 for compatibility with old ET versions
2424
# ET 1.0.0 only supports Python >=3.10,<3.13
2525
CONDA_ENV_NAME="coreml_bc_test_env"
26-
conda create -y -n "${CONDA_ENV_NAME}" python=3.10
26+
conda create -y -n "${CONDA_ENV_NAME}" python=3.10 pip packaging
2727

2828
# Use conda run to execute commands in the new environment
2929
CONDA_RUN="conda run --no-capture-output -n ${CONDA_ENV_NAME}"
@@ -69,7 +69,7 @@ git submodule sync --recursive
6969
git submodule update --init --recursive
7070

7171
# Install executorch
72-
${CONDA_RUN} pip install --upgrade pip
72+
${CONDA_RUN} python -m pip install --upgrade pip
7373
${CONDA_RUN} python install_executorch.py
7474

7575
# Step 3: Export model
@@ -129,7 +129,7 @@ git submodule update --init --recursive
129129

130130
# Step 5: Install current version
131131
echo "=== Step 5: Installing current ET version ==="
132-
${CONDA_RUN} pip install --upgrade pip
132+
${CONDA_RUN} python -m pip install --upgrade pip
133133
${CONDA_RUN} python install_executorch.py
134134

135135
# Step 6: Run the old pte file

0 commit comments

Comments
 (0)