I’ve created a package called anyMOD.jl that uses the Gurobi package as a dependency. However, Gurobi is only required for one special but quite useful feature and apart from that not used anywhere in the package. Building the Gurobi package successfully requires to have installed some additional software. This also prevents a package with a Gurobi dependency from being tested via Travis. As a result, I want Gurobi only to be a dependency, if some specific files exists in a specific directory.
Is there any way to achieve such a condition on package dependency? I looked into Requires.jl, but only found a way to make parts of the module dependant on dependencies.