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

fix: build from sources with --no-binary=ninja #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mayeut
Copy link
Contributor

@mayeut mayeut commented Nov 26, 2024

fix #274

Ninja shall never request ninja in its build dependencies as a default behavior.

When scikit-build-core knows a ninja binary wheel exists for a given platform, it's always added as a dependency when a valid one is not found on the system.

Let's allow ninja to depend on ninja only if explicitly allowed (this will speed-up the CI here). In other cases, it's more likely that a request to build ninja would be because of a forced source only build.

@mayeut mayeut marked this pull request as ready for review November 26, 2024 20:27
@mayeut mayeut changed the title fix: build from sources when forcing build from source fix: build from sources with --no-binary=ninja Nov 26, 2024
@mayeut
Copy link
Contributor Author

mayeut commented Nov 28, 2024

@henryiii, I think ninja & cmake are special enough that using a custom backend wrapper on scikit-build-core is more appropriate than having new options in scikit-build-core. You probably have much more insight, what do you think ?

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.

ninja==1.11.1.2 build fails when built with --no-binary=ninja (or --no-binary=:all:)
1 participant