You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some form of optional loggable output, especially regarding download progress bar and build rotating thingy. Not for log files, mainly, for stdout.
According to the old design principle, "When a program has nothing surprising to say, it should say nothing." It's not always true nowadays but sometimes it's a really important principle.
If you run pip install in any environment other than "normal" interactive shell (say, over fabric, as we do), you can easily get several hundred lines like this for every single package:
[user@server] out: 0% | | 20kB 40.6MB/s eta 0:00:01
[user@server] out: 0% |▏ | 30kB 41.9MB/s eta 0:00:01
[user@server] out: 0% |▏ | 40kB 3.7MB/s eta 0:00:02
[user@server] out: 0% |▎ | 51kB 4.5MB/s eta 0:00:02
[user@server] out: 0% |▎ | 61kB 5.3MB/s eta 0:00:02
[user@server] out: 1% |▍ | 71kB 6.0MB/s eta 0:00:02
[user@server] out: 1% |▍ | 81kB 6.7MB/s eta 0:00:01
[user@server] out: 1% |▌ | 92kB 7.4MB/s eta 0:00:01
[user@server] out: 1% |▌ | 102kB 3.7MB/s eta 0:00:02
[user@server] out: 1% |▌ | 112kB 3.7MB/s eta 0:00:02
[user@server] out: 1% |▋ | 122kB 3.7MB/s eta 0:00:02
[user@server] out: 2% |▋ | 133kB 3.7MB/s eta 0:00:02
[user@server] out: 2% |▊ | 143kB 6.0MB/s eta 0:00:02
[user@server] out: 2% |▊ | 153kB 6.0MB/s eta 0:00:02
There ought to be a way to replace that with dots or something without using -q switch that often hides many helpful messages (build errors and such) as well as this escape-magic above. And best if pip switches to this loggable mode whenever it detects that the output is not a TTY (that's what wget does, for example) while allowing to force the mode (fabric can emulate TTY).
More complex verbosity switch is also an option, but for this particular issue just loggable output mode will be enough. Speaking of "dots or something", there are several different patterns for console-based progress bars. It might be a good idea to explore possibilities and maybe make it configurable if there are more than one that's good.
The text was updated successfully, but these errors were encountered:
Some form of optional loggable output, especially regarding download progress bar and build rotating thingy. Not for log files, mainly, for stdout.
According to the old design principle, "When a program has nothing surprising to say, it should say nothing." It's not always true nowadays but sometimes it's a really important principle.
If you run
pip install
in any environment other than "normal" interactive shell (say, over fabric, as we do), you can easily get several hundred lines like this for every single package:There ought to be a way to replace that with dots or something without using
-q
switch that often hides many helpful messages (build errors and such) as well as this escape-magic above. And best if pip switches to this loggable mode whenever it detects that the output is not a TTY (that's whatwget
does, for example) while allowing to force the mode (fabric can emulate TTY).More complex verbosity switch is also an option, but for this particular issue just loggable output mode will be enough. Speaking of "dots or something", there are several different patterns for console-based progress bars. It might be a good idea to explore possibilities and maybe make it configurable if there are more than one that's good.
The text was updated successfully, but these errors were encountered: