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

Merged
merged 3 commits into from
Dec 15, 2024

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 ?

This disables the fallback to `>=3.15` if CMakeLists.txt can't be parsed properly.
@mayeut
Copy link
Contributor Author

mayeut commented Dec 15, 2024

Given the similar scikit-build/cmake-python-distributions#568 was approved, I'll merge this.

@mayeut mayeut merged commit f41b36a into scikit-build:master Dec 15, 2024
17 checks passed
@mayeut mayeut deleted the no-binary-ninja branch December 15, 2024 08:49
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