Open BMaxV opened 5 months ago
If you are using setuptools as backend, you can try:
python -m build -C--quiet
To reduce de verbosity (it will not reduce to 1 line though).
Build does not interfere with the build backend's output. That's why build backends like scikit-build-core produce colorful output with build, and not with pip (which captures and reprints the output). Build backends generally have verbosity toggles. Setuptools is the only one that is extremely verbose by default.
That said, it might not be a bad idea, I'm +0.1 on it. You can do && echo "Success" || echo "Failed"
, I think.
I'd like some way to communicate to tools what the built distributions were, but that's tricky to do since stdout/stderr are being written to by the build backend. uv
does this by writing to a file, that might be what we have to do. Might be related.
I'd like some way to communicate to tools what the built distributions were, but that's tricky to do since stdout/stderr are being written to by the build backend.
uv
does this by writing to a file, that might be what we have to do. Might be related.
This is https://github.com/pypa/build/issues/198 - let's discuss it there.
Hello everyone,
The default
python -m build
lists a lot of interactions with files that I don't want to see (600 lines). I really only want to know if the build succeeded or not.
can I have a
python -m build --quiet
or something that just tells me
Successfully built foobar.whl
? I can just pipe it to a file but that doesn't tell me success y/n.Thank you for your work and this software!