Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry-pick for release/2.5] #5931

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

NicolasHug
Copy link
Member

2 cherry-picks below needed for torchcodec.

NicolasHug and others added 2 commits November 18, 2024 15:57
This PR enable the build of M1 wheels to rely on `python -m build`
instead of `python setup.py`. The default is still `python setup.py`.
This is the same as pytorch#5071 and
pytorch#5076 that were landed for
linux wheels.

We need this for torchcodec to support M1 wheels
pytorch/torchcodec#230

CC @scotts @atalman
Currently, building Mac wheels has setting up miniconda for binary
builds hard-coded to false. I believe this prevents us from doing wheel
building on ephemeral runners. When trying to build Mac wheels on
ephemeral runners, we run into a [`conda command not
found`](https://github.com/pytorch/torchcodec/actions/runs/11580808748/job/32240163090?pr=320)
error. Conda is not found because it's not installed. I assume that on
our stable runners, it's already there.

This PR adds setting up miniconda as an option. It defaults to `false`
because currently everyone is already working without setting it up, so
it seems safest to disable it by default. This change mirrors what is
currently in building wheels for Linux:
https://github.com/pytorch/test-infra/blob/29912dec4567529a8aa7d124b7610c06b1648acb/.github/workflows/build_wheels_linux.yml#L68-L72
Copy link

vercel bot commented Nov 18, 2024

@scotts is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 18, 2024
Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@NicolasHug NicolasHug merged commit b6da80a into pytorch:release/2.5 Nov 18, 2024
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants