mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
8af152dcff
Convert the Python opm package from a regular package to a namespace package such that opm-simulators and opm-common can contribute to the package from different filesystem paths. In this way, the two packages opm.simulators and opm.io (in opm-common) can have a different parent filesystem path.
13 lines
526 B
Python
13 lines
526 B
Python
# Instead of having the pybind11 extension module, e.g.
|
|
# simulators.cpython-310-x86_64-linux-gnu.so located
|
|
# directly in the opm directory, we create a package (sub
|
|
# directory) with the same name and place it there.
|
|
# In this way we can do (if needed in the future)
|
|
#
|
|
# from opm.simulators import BlackOilSimulator, FoamSimulator, PurePythonUtils, ...
|
|
#
|
|
# where FoamSimulator and PurePythonUtils does not currently exists,
|
|
# but could be possible future extensions..
|
|
#
|
|
from .simulators import BlackOilSimulator
|