-
Notifications
You must be signed in to change notification settings - Fork 75
Passing through project-specific config options #54
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
Comments
Yes, I am working on it, but that will play with the default Meson options in the config file and I am struggling to decide on the design. Passing multiple backend config options in pypa/build works just like in Meson with
|
Cool, good to know. This one is not urgent, it's more a nice-to-have for SciPy 1.9.0 I'd say. |
I'm currently trying to setup cibuildwheel infrastructure for scipy. However, in order to target e.g. I can't do:
Will this PR enable this? |
@andyfaff I believe it should, with |
Meson can use both native and cross files at the same time, although it's not especially useful unless the project in question actually has some components tagged as native-only. It's sometimes useful, though, to have e.g. code generator programs that are built for the build machine, not the cross-compile target. Meson therefore allows you to look up native dependencies/programs too, use the native file to configure it, etc. |
One thing I forgot to ask, is it possible to provide flags to the build process via an environment variable? Taking the above example is it possible to do something along the lines of:
|
No, that is not possible, it's a conscious design choice: https://mesonbuild.com/Contributing.html#environment-variables. There are exceptions, like |
If this PEP 517 backend wanted to, it could read the environment variable and pass it to Meson. Although that would mean it diverges from Meson's conscious design choice... |
I'd much prefer to stay with the Meson philosophy. gh-122 should already solve this problem. |
I too need to add a
Alternatively, how to add |
Try and follow https://github.com/scipy/scipy/blob/acd1a4ad9e8d41d4956baf5fac38a8c779debcda/.github/workflows/wheels.yml#L159, that'll give the clearest example of how to do a cross compilr |
The docs currently mention one option: https://meson-python.readthedocs.io/en/latest/usage/build-options.html. This is a
meson-python
build option. I am trying to figure out if/how it is possible to pass project-specific options through. For example, in SciPy we have ameson_options.txt
file containing:I don't think it is currently possible to use those with either
build
orpip
? Something like:$ python -m build "-C--Dblas=mkl --Dlapack=lapack"
Note that the
build
docs are a bit fuzzy on-C--
for config settings, or how to pass on multiple settings.Is this possible at all, or is it planned for the future?
The text was updated successfully, but these errors were encountered: