Pass options to `build_ext`
Closed this issue · 2 comments
diegoferigo commented
It not clear to me (and I didn't find much documentation) whether is possible to pass extra options to the build_ext
.
The help output print the following:
--config-setting CONFIG_SETTING, -C CONFIG_SETTING
pass options to the backend. options which begin with a hyphen must be in the form of "--config-setting=--opt(=value)" or "-C--opt(=value)"
But I couldn't find how to use it properly for this purpose.
In comparison, this is how the same can be done using other systems:
python setup.py bdist_wheel build_ext -D"BAR=Foo;VAR=TRUE"
pip wheel --global-option="build_ext" --global-option="-DBAR=Foo;VAR=TRUE" .
layday commented
setuptools doesn't properly support config settings. You could try python -m build -C--global-option=build_ext -C--global-option=-DBAR=Foo;VAR=TRUE
.
diegoferigo commented
I was looking for exactly something like what you suggested, it seems working fine! Thanks for the prompt answer. Closing.