Skip to content
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

Pass options to build_ext #328

Closed
diegoferigo opened this issue Jul 9, 2021 · 2 comments
Closed

Pass options to build_ext #328

diegoferigo opened this issue Jul 9, 2021 · 2 comments

Comments

@diegoferigo
Copy link

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
Copy link
Member

layday commented Jul 9, 2021

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
Copy link
Author

I was looking for exactly something like what you suggested, it seems working fine! Thanks for the prompt answer. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants