Empty --config-setting causing problems with meson-python build #1471
ianthomas23
started this conversation in
General
Replies: 1 comment 2 replies
-
That line (edit: two lines) looks suspect as is and I would not argue to make meson-python ignore empty settings. :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am in the process of porting an existing Python/C++ project that uses
cibuildwheel
to themeson-python
build backend (contourpy/contourpy#183). This is progressing well but there is one problem when usingcibuildwheel
.The build verbosity flag passed to
meson-python
has a specific form of aconfig-setting
that iscompile-args=-v
. This is easily achieved incibuildwheel
usingCIBW_CONFIG_SETTINGS
. Hence I do not need to useCIBW_BUILD_VERBOSITY
and I leave it unspecified. But when I do this I end up with abuild
command of this form:The problem is the empty
--config-setting=
at the end, whichmeson-python
errors out on. The GHA run producing this is https://github.com/ianthomas23/contourpy/actions/runs/4715025410/jobs/8361738715 usingcibuildwheel
2.12.1.I figure that ideally
cibuildwheel
wouldn't emit the empty--config-setting
. On naively looking at thecibuildwheel
source code for the first time I think a possible fix is herecibuildwheel/cibuildwheel/linux.py
Lines 263 to 265 in 7c9b837
not appending to the
extra_flags
if theverbosity_setting
is empty. But I assume there must be other places for a similar change for non-linux platforms.Of course it could be argued that
meson-python
should tolerate the empty setting that is currently produced.Beta Was this translation helpful? Give feedback.
All reactions