-
Notifications
You must be signed in to change notification settings - Fork 122
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
--config-setting example #205
Comments
That's why an example is needed. Maybe document which backends are compatible, and which are not? |
How should the example be structured? All the frontend can do is to
These are issues toward the specification (PEP 517), not this repository. They should be raised on forums that discuss the specification (https://discuss.python.org these days), not here. |
The value is being interpreted as an argument to python -m build --no-isolation -C--no-cache The build will complete but |
There is a story of the user who tried to pass |
Is it how the argument parsing is supposed to work if the setting is defined with non-optional value as |
No, it's a well-known issue with |
Do you have an upstream ticket for this, if it's well-known? And considering this limitation I suppose this ticket may be addressed by documenting your comments from #205 (comment). |
I agree this is an issue in argparse and should be addressed there. However, there are still two alternative forms, |
It doesn't seem that 10 years old bug will gain traction any time soon. Is switching to patched argparse possible? |
The output of |
Well, since this issue is now in my interest, it is in my TODO, but I am not sure when I will be able to get to it, or how long it would take to get a patch reviewed, merged and released. Moving to a patched argparse would mean adding a new dependency, which I am very strongly opposed to as that would make the bootstrapping process more difficult, as it if were already not difficult enough 🙃. The most sensible solution to this would probably hack around this by manually joining I am sorry for the trouble this is causing, but there are alternative forms you can use, so this issue shouldn't be a blocker in any way. Instead of doing |
Until argparse gets fixed upstream I'm happy that we document this behavior in the help message. I'd approve such PR. |
Added examples of argparse-compatible configuration settings and harmonised option formatting. Ref: pypa#205
Added examples of argparse-compatible configuration settings and harmonised option formatting. Ref: pypa#205
Added examples of argparse-compatible configuration settings and harmonised option formatting. Ref: pypa#205
Added examples of argparse-compatible configuration settings and harmonised option formatting. Ref: #205
Fixed by #207. Thanks! |
It doesn't seem that -C option has any effect.
✗ python -m build --no-isolation -C --no-cache usage: python -m build [-h] [--version] [--sdist] [--wheel] [--outdir dir] [--skip-dependencies] [--no-isolation] [--config-setting CONFIG_SETTING] [srcdir] python -m build: error: argument --config-setting/-C: expected one argument ✗ python -m build --no-isolation -C '--no-cache' usage: python -m build [-h] [--version] [--sdist] [--wheel] [--outdir dir] [--skip-dependencies] [--no-isolation] [--config-setting CONFIG_SETTING] [srcdir] python -m build: error: argument --config-setting/-C: expected one argument
The text was updated successfully, but these errors were encountered: