Skip to content

ci: Fix wheel building on Mac #4668

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

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Mar 15, 2025

This used to work until a few days ago. Then it stopped. I think that GitHub changed the Mac runner configuration in some way that broke it, now it's complaining about not being able to find ninja, so easily fixed by instructing it to generate regular makefiles instead.

Along for the ride: If ONLY the wheel making workflow changes, there's no need to rerun the regular CI, docs, or analysis workflows.

This used to work until a few days ago. Then it stopped. I think that
GitHub changed the Mac runner configuration to not already have ninja
installed, so we need to instruct it to use regular makefiles and not
ninja files.

Along for the ride: If ONLY the wheel making workflow changes, there's
no need to rerun the regular CI, docs, or analysis workflows.

Signed-off-by: Larry Gritz <[email protected]>
@zachlewis
Copy link
Collaborator

Interesting. No objections at all to the stuff that's come along for the ride.

I would like to dive deeper into whatever's causing the problems with ninja, because ninja should be coming from scikit_build_core (i.e. as a dependency needed for python-based builds, same as with cmake itself). This could be indicative of a change introduced by a newer version of scikit_build_core itself, in which case, we might be better served by more tightly constraining the version requirement upper bound.

(Still, no problem with changing the generator to "Unix Makefiles", that's a clever workaround)

@lgritz
Copy link
Collaborator Author

lgritz commented Mar 15, 2025

Maybe it was scikit_build_core? In any case, it only failed on Mac Intel.
This seemed to be the expedient fix, but if you'd like to dig into it more, feel free. You can reproduce the failure case just by pushing the current (pre- this PR) main to your fork, using any branch name that contains the word "wheel".

@lgritz lgritz merged commit c0f0c5a into AcademySoftwareFoundation:main Mar 15, 2025
68 checks passed
@lgritz lgritz deleted the lg-wheel branch March 16, 2025 23:55
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Mar 16, 2025
This used to work until a few days ago. Then it stopped. I think that
GitHub changed the Mac runner configuration in some way that broke it,
now it's complaining about not being able to find ninja, so easily fixed
by instructing it to generate regular makefiles instead.

Along for the ride: If ONLY the wheel making workflow changes, there's
no need to rerun the regular CI, docs, or analysis workflows.

Signed-off-by: Larry Gritz <[email protected]>
lgritz added a commit that referenced this pull request Mar 22, 2025
The Intel Macs had this problem last week and #4668 fixed it. Now
suddenly the ARM Macs had it this week. Seems to be something changing
on the skbuild side.

Signed-off-by: Larry Gritz <[email protected]>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Mar 22, 2025
…ndation#4668) (AcademySoftwareFoundation#4675)

The Intel Macs had this problem last week and AcademySoftwareFoundation#4668 fixed it. Now
suddenly the ARM Macs had it this week. Seems to be something changing
on the skbuild side.

Signed-off-by: Larry Gritz <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 17, 2025
This used to work until a few days ago. Then it stopped. I think that
GitHub changed the Mac runner configuration in some way that broke it,
now it's complaining about not being able to find ninja, so easily fixed
by instructing it to generate regular makefiles instead.

Along for the ride: If ONLY the wheel making workflow changes, there's
no need to rerun the regular CI, docs, or analysis workflows.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 17, 2025
…ndation#4668) (AcademySoftwareFoundation#4675)

The Intel Macs had this problem last week and AcademySoftwareFoundation#4668 fixed it. Now
suddenly the ARM Macs had it this week. Seems to be something changing
on the skbuild side.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 2025
This used to work until a few days ago. Then it stopped. I think that
GitHub changed the Mac runner configuration in some way that broke it,
now it's complaining about not being able to find ninja, so easily fixed
by instructing it to generate regular makefiles instead.

Along for the ride: If ONLY the wheel making workflow changes, there's
no need to rerun the regular CI, docs, or analysis workflows.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 2025
…ndation#4668) (AcademySoftwareFoundation#4675)

The Intel Macs had this problem last week and AcademySoftwareFoundation#4668 fixed it. Now
suddenly the ARM Macs had it this week. Seems to be something changing
on the skbuild side.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants