-
Notifications
You must be signed in to change notification settings - Fork 69
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
No options to control number of parallel compiling processes #205
Comments
Thanks for the request @jinluchang. This will be enabled by gh-167. |
It's really nothing to do with Meson. This is comparable to Meson supports some environment variables during configuration, but "freezes" them at the time of configuration. For example, $CC/$CFLAGS. Ninja, sadly, rejects the request for $NINJAFLAGS, not out of any principled objection to environment variables, but apparently because ninja focuses on speed, and ... Using https://github.com/michaelforney/samurai you can set Note: you will need #175 to avoid installing a PyPI-specific version of ninja that overrides whichever system one you might have. |
@rgommers Thank you! #167 is exactly what I hoped for. Perhaps I can close this issue now? @eli-schwartz I agree with your point. It would be great to have #175 too. At present, I have to create a dummy package to fill this dependency https://github.com/jinluchang/Ninja-dummy. Having a dependency that downloads during compile time can be quite inconvenient sometimes scikit-build/ninja-python-distributions#127 (comment). |
#175 is just waiting for #202 and #203 (IIRC). I'll try to finish it off as soon as those go in. (Though I've forgotten why #202 was needed for it). Just curious, why are making a dumpy package? If you want to control compile time completely, such as for distributions, you can use |
@henryiii Good suggestion! I didn't think of that. |
@jinluchang this should work now that gh-167 has been merged. I just tested that this does what you'd expect:
|
Great! Thanks. |
I don't see a way to control the number of parallel compiling processes in the documentation. Reading the code, it seems that there is currently no way to specify this number but to rely on ninja's default parameter:
meson-python/mesonpy/__init__.py
Line 796 in ef67e0e
Ninja and Meson's philosophy prevent this issue from being solved by using an environment variable. So as far as I can see, there has to be an option added to meson-python to support altering this option (and perhaps other
meson compile
options).Any help would be really appreciated.
The text was updated successfully, but these errors were encountered: