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
Uh oh!
There was an error while loading. Please reload this page.
-
I am in the process of porting an existing Python/C++ project that uses
cibuildwheelto themeson-pythonbuild backend (contourpy/contourpy#183). This is progressing well but there is one problem when usingcibuildwheel.The build verbosity flag passed to
meson-pythonhas a specific form of aconfig-settingthat iscompile-args=-v. This is easily achieved incibuildwheelusingCIBW_CONFIG_SETTINGS. Hence I do not need to useCIBW_BUILD_VERBOSITYand I leave it unspecified. But when I do this I end up with abuildcommand of this form:The problem is the empty
--config-setting=at the end, whichmeson-pythonerrors out on. The GHA run producing this is https://github.com/ianthomas23/contourpy/actions/runs/4715025410/jobs/8361738715 usingcibuildwheel2.12.1.I figure that ideally
cibuildwheelwouldn't emit the empty--config-setting. On naively looking at thecibuildwheelsource 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_flagsif theverbosity_settingis 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-pythonshould tolerate the empty setting that is currently produced.Beta Was this translation helpful? Give feedback.
All reactions