I recently discovered tox, due to a testing issue that i had. It is
working great locally on my machine. I am using it to set up different
environment that contain different solvers for my optimization code.
However the solvers are not part of the requirements for this project as
the user might want to choose the solver for a specific purpose. The
main solvers used are cbc, gplk, and cplex. At the moment I have set up
the solvers on my system and invoke them using environment variables.
However, this approach causes Tox to look for the solver outside of the
created environment, which is not the behavior i intended or expected. I
would like to be able to install the solver inside the environment as a
system dependency, so that i can move my test setup to a github action
or really any computer i like, without having to install a solver there.
The solvers are installed on my system with the following commands, and
that is basically what i would like to move to the virtual environment..
apt-get install coinor-cbc
apt-get install glpk-utils libglpk-dev glpk-doc
and whatever 300 hoops you have to jump to install cplex.
Please find also attached my tox.ini file.
Could you advice what the best approach would be to achieve the
installation with virtenv?
Thank you for your help