Skip to content

Conversation

@shanemcd
Copy link
Contributor

@shanemcd shanemcd commented Dec 9, 2025

The --parallel={parallel} argument in _build_backend/backend.py was a regular string instead of an f-string, causing it to literally pass --parallel={parallel} to the cmake bootstrap script instead of the actual parallel job count.

This resulted in single-threaded bootstrap compilation regardless of CMAKE_BUILD_PARALLEL_LEVEL setting.

The fix is simply adding the f prefix to make it f"--parallel={parallel}".

The --parallel={parallel} argument was a regular string instead of an
f-string, causing it to literally pass "--parallel={parallel}" to the
cmake bootstrap script instead of the actual parallel job count.

This resulted in single-threaded bootstrap compilation regardless of
CMAKE_BUILD_PARALLEL_LEVEL setting.
@shanemcd
Copy link
Contributor Author

shanemcd commented Dec 9, 2025

Some less-than-scientific before / after evidence:

Before

Screenshot_20251208_212514

After

Screenshot_20251208_212744

@henryiii henryiii merged commit a28030b into scikit-build:main Dec 9, 2025
28 checks passed
@henryiii
Copy link
Contributor

henryiii commented Dec 9, 2025

Thanks!

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