Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python tox dependencies installation output

Is it possibile with tox to avoid the redirect of the output to a file when installing dependencies with pip? I want to see what's being installed so I would like to log to stdout instead of a file.

like image 328
se7entyse7en Avatar asked Sep 06 '25 22:09

se7entyse7en


1 Answers

If you'd like to see what's been installed for each run, what about using pip freeze? You can add it to the commands section and it will dump the installed packages in requirements format.

commands =
    pip freeze
    ... rest of your commands here.

I often use this strategy for doing something like python echo_versions.py where echo_versions.py is a small script that shows the versions of packages that I'm interested in for each run - just to ensure that the expected package is installed.

like image 156
jamesc Avatar answered Sep 09 '25 21:09

jamesc