Skip to content

Commit 3a3aa50

Browse files
authored
Revert "Use python3 instead of python for macos wheels build" (#5752)
Reverts #5737 This causes issue: https://github.com/pytorch/torchcodec/actions/runs/11155431850/job/31006353091?pr=230 During build, different Python verison is getting picked up, required 3.9 - version used 3.10: ``` + __conda_exe run -p /Users/ec2-user/runner/_work/_temp/conda_environment_11155431850 python3 -m pip install build + /opt/homebrew/Caskroom/miniconda/base/bin/conda run -p /Users/ec2-user/runner/_work/_temp/conda_environment_11155431850 python3 -m pip install build WARNING: The script pyproject-build is installed in '/Library/Frameworks/Python.framework/Versions/3.10/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Notice: A new release of pip is available: 23.0.1 -> 24.2 Notice: To update, run: python3 -m pip install --upgrade pip ```
1 parent a148ec4 commit 3a3aa50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_wheels_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
build-command:
4848
description: The build command to use if build-platform is python-build-package
4949
required: false
50-
default: "python3 -m build --wheel"
50+
default: "python -m build --wheel"
5151
type: string
5252
env-var-script:
5353
description: "Script that sets Domain-Specific Environment Variables"
@@ -181,7 +181,7 @@ jobs:
181181
PYTORCH_VERSION="$(${CONDA_RUN} pip show torch | grep ^Version: | sed 's/Version: *//')"
182182
export PYTORCH_VERSION
183183
184-
${CONDA_RUN} python3 -m pip install build
184+
${CONDA_RUN} python -m pip install build
185185
echo "Successfully installed Python build package"
186186
187187
${CONDA_RUN} ${{ inputs.build-command }}

0 commit comments

Comments
 (0)