https://pantsbuild.org/ logo
#general
Title
# general
f

few-alarm-32433

05/23/2020, 8:18 AM
Thoughts on disabling the pip progress bars (
--progress-bar off
) in the pants bootstrap script? https://github.com/pantsbuild/setup/blob/gh-pages/pants#L173 Happy to submit a PR.. We use CircleCI which presents itself as a TTY, so it’s hard to navigate stdout if we don’t have a cached bootstrap of pants. Not really pants’ fault of course but I don’t think progress bars are strictly better even in interactive shells. The good news is that it’s easy for users to tweak the bootstrap script if they like.
h

hundreds-father-404

05/23/2020, 8:57 AM
Good idea! I think that’s a good change, especially because Pants is run in CI so much. Iirc, we already have a log message explaining that we’re setting up a virtual env so that users don’t wonder if the script is hung. PR appreciated :)
Also it will possibly help to cache the setup dir. See https://pants.readme.io/docs/using-pants-in-ci#directories-to-cache
f

few-alarm-32433

05/24/2020, 5:28 AM
Actually, it seems that
--progress-bar off
was only added in pip 10.0.0. That still dates to 2018 but from what I can tell older versions of pip are still fairly common, eg https://packages.ubuntu.com/search?keywords=python-pip So that feature might not be wise to introduce now.
h

hundreds-father-404

05/24/2020, 5:35 AM
That’s okay. We upgrade pip here: https://github.com/pantsbuild/setup/blob/gh-pages/pants#L173 We need to do this so that pip understands
manylinux2014
, which was only recently added.
3 Views