Remove dependency on ogs wheel
For discussion:
In my opinion the dependency on the ogs wheel is too heavy. It is currently used in meshlib via from ogs import cli
, i.e. it uses the cli executables via its cli wrappers. We already discussed in #20 (closed) that it would be nice if one could specify other (e.g. locally built) executables. I propose to remove this hard dependency. Of course this would shift the responsibility to the user of ogstools to have the executables available.
I think we have two possibilities to implement that:
- In ogstools don't use
ogs.cli
and directly callsubprocess.run()
– here we would loose the nice interface - Move
ogs.cli
from ogs into ogstools – here we would have some redundancies (e.g.binaries_list
) in both packages
For both options it should be assumed that the executables are in the PATH
.
Then user could run
pip install ogs ogstools
# OR
export PATH=/path/to/ogs/bin:$PATH
pip install ogstools
and everything should be fine.
What do you think?
cc: @TobiasMeisel @chleh