-
Notifications
You must be signed in to change notification settings - Fork 239
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
Passing user-specified arguments to python -m build
or python -m pip wheel
.
#1227
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
The suggestion you have seems to be pip or build agnostic, and you could provide any possible flags to the front end. Provide other flags with spaces.
What was your other suggestion? |
Yeah, this seems reasonable to me. The only question I have is whether the option should be CIBW_BUILD_CONFIG_SETTINGS would be great in TOML, where we can do data structures natively, so it would be like: build-config-settings = { builddir = "build" }
# or even
[tool.cibuildwheel.build-config-settings]
builddir = "build" ...but, it could be clumsy in an environment variable, since config-settings is theoretically a mix of dicts and arrays. However, in practise, pip only allows to pass This does give us an easy answer for an environment variable version of As for the idea of But I'm curious what others think, too. |
Any of those options would work for us. I like the idea of CIBW_BUILD_CONFIG_SETTINGS, either in toml or environment variable. |
With I like |
I'm currently working on moving mypy to build mypyc compiled wheels with PEP 517 and I think we are currently blocked on being able to pass |
I forgot to say that I'd like to send the |
python -m build
python -m build
or python -m pip wheel
.
This is merged now & out in 2.10, and I've been trying to get projects to try it out, FYI. ;) Remember it can be mixed with |
Description
I was to build scipy wheels using cibuildwheel. scipy uses mesonpy as a build backend, which then uses meson and ninja. I've got to the stage where I want to cross compile for macosx_arm64. To do so means configuring meson for cross compilation.
I think this can be done via:
Specification of the build directory is important because it contains all of the info on the build setup. If
builddir
is not specified thenmesonpy
builds in a different directory, all of the specification for cross compilation is lost, and only a native build occurs.I propose that it should be possible for cibuildwheel to pass options to the front-ends; in this case
-Cbuilddir=build
tobuild
(or--config-settings builddir=build
with pip)?This has come up a few times in very similar issues, such as #268, #766
Build log
No response
CI config
No response
The text was updated successfully, but these errors were encountered: