Conda or Pip build with Variant depending on availability of Gurobi and/or CPLEX

  Kiến thức lập trình

I’m interested in building a conda or package for a binary software whose compilation and run-time execution depends on the availability of external software, namely gurobi and CPLEX.
Gurobi has a conda package that should include binaries, so we could specify the gurobi dependency for that.
However, what about CPLEX?

If the libraries of those dependencies are not found at runtime, my binary cannot start.

Any recommendations?

Many thanks

For context, I’ve been scouting the variants on conda here:
https://docs.conda.io/projects/conda-build/en/latest/resources/variants.html

In pip situation is somehow worse as to compile there are bigger dependencies such as build-essentials and alike I’m not really sure they are easy to handle with pip

New contributor

Davide Fioriti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT