I need psycopg2 and lxml for my tests, but when I try to install it in a virtualenv through tox it fails due to the missing pg_conf or other dependencies.
I found this explanation of bootstrap scripts: http://www.virtualenv.org/en/latest/index.html#bootstrap-example
How can I add a bootstrap script to tox’s virtualenv? Do you know any good examples for my concerns (lxml and psycopg2)?
I don’t think you can use bootstrap scripts (as described in the virtualenv docs) with tox. However, you can configure your
tox.inifile to install Python dependencies that are not specified insetup.py, and run arbitrary commands before running tests. From the tox home page:depsandcommandsare actually lists:But forget about bootstrap scripts and take a step back. What is the original problem with pg_conf?