Quiet output from pip via requirements file?

amazon-elastic-beanstalk, pip, requirements.txt

Solution

After more digging, this is a pending feature request for pip in github:

https://github.com/pypa/pip/issues/271

Temporary workaround: Using a separate bash script to invoke pip per-line until this is implemented, published, and available on Elastic Beanstalk.

Problem

pip has a -q/--quiet flag that works ideally from the command line. I'm using an automated deployment process (Amazon Elastic Beanstalk), and the tools use pip to install from a requirements file. Unfortunately, pip is generating non-error output that's causing EB to abort due to its logger being unable to handle non-ASCII output. Since I can't apply the quiet flag to the pip command directly (it's run automatically), is there a per-line flag I can set in my requirements file or an environment variable that would suppress pip's output?

Original source