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
Docs need better examples of how to use --config-setting #517
Comments
I'm trying to do the same: # Going from deprecated:
python setup.py build --compiler=mingw32
# To the promoted:
python -m build -n -w -C="--build-option=--compiler=mingw32" not working |
I think you have to add the key and value as separate
|
How you use
|
Hi @jontwo . I have a question, if you use this command |
All I know is what I've written above - no idea what setup.py does with the value once you pass it in, sorry. |
Bumping this because the docs still do not make it clear how to use So, with
but now that gives the error:
Looking at the code - https://github.com/pypa/build/blob/main/src/build/__main__.py#L334 and https://github.com/pypa/build/blob/main/src/build/__main__.py#L362 - it seems the parser has changed so I need to somehow enter the config options differently. Please give me a clue how to do this, because I have tried the following and none of them work. Either there is an error or the wheel builds, but the name does not contain the build number, so the option was ignored.
For the record, |
Interesting, I can get it to print out the help and
|
Got it - the answer was in #264. You have to specify which stage you are aiming the options at, in this case
|
This is specific to setuptools, and something I think they are trying to improve. I'd be fine to have some backend-specific examples, though. |
It's not clear how to use
--config-setting
- there is only one vague example in the doc and even looking at the source code doesn't throw any light on it.I did find a few clues in #202, so for example the equivalent command to
is
As the comments in #202 say, this is unintuitive and is also pretty ugly. Ideally
--config-setting
could be made more user-friendly, but at least if there were examples like this in the doc it would be more helpful.The text was updated successfully, but these errors were encountered: