OpmInit.cmake is one of the first includes and most importantly before
the opm-*-prereqs.cmake files are include. The macro is needed to make
the policies set in all CMakefiles. OpmSetPolicies should be called in
the toplevel CMakeLists.txt file.
This fixes a lot of warnings experienced in downstream modules that
got triggered by the opm-*-prereqs.cmake files. At some calls the
policies were at other not.
On the other hand new warnings about soon to be deprecated policies
CMP0026 and CMP0048 appear at least for cmake version 3.13.4.
But that should be fixed in another PR.
- Include the eclipse_io.cpp file in existing extension library - do not create
a new library.
- Remove Python class EclFile - just expose the C++ through Pybind1, include
some monkey-patching of the class to ensure proper Python strings for CHAR
keywords.
- Remove string based keyword lookup.
- Use standard Python methods __len__, __getitem__ and __contains__; get() is
an equivalent alternative to __getitem__().
- Add property arrays in addition to getListOfArrays()
- Main cmake based python installation is based on small script install.py and
not setup.py
- Python installation is guarded by cmake switch OPM_INSTALL_PYTHON
- Configure convenience shell script setup-install.sh for setup.py based
installation.
- Remove PYTHONPATH hacks from setup.py
setup.py: test_suite -> tests_suite .
libsunbeam -> libopmcommon_python.
sunbeam -> opm: test_connection ok.
test_deck ok.
test_group_tree ok.
test_grupnet ok.
test_parse_deck.py ok.
test_parse.py ok.
python all tests ok.
currently, the python bindings are built on every make invocation,
including the 'make install' command.
this improves on this situation by tracking whether or not the target
needs to be rebuilt through a custom output and dependencies.
the list of dependencies is not very pretty, but necessary when
linking two build systems like this.
setup.py moved to python/python.
moved python tests to python/python.
added __init__.py under python/tests.
added 'test_' before all python test names.
test_ prefix added to tests.
setup.py and python tests moved back to python base.
setuptools executes from root python.
python: tests run from root python w/ setup.py.
python tests: temp reduced to test_deck only.
python setup.py: manually linked opmcommon.
setup.py: linked ecl.
setup.py linked boost_filesystem.
setup.py: linked boost_regex.
python all tests run.
removec usr/local from setup.py ext_module.
cmake make copies entire python dir to build.
setup.py can execute from build.
setup.py executes from build/python.
python tests run under setup.py.
setup.py library_dirs and include-dirs set by cmake command.
removed cmake files from sunbeam.
sunbeam: added code for install.
setup.py: removed 'import ecl'.
python/src -> python->src_sunbeam.
setup.py: discontinued use of glob, all files listed instead.
build-opm_module.sh: added prefix_path to opm.
build-opm-module.sh: changed spell error for EXTRA_MODULE_FLAGS[opm-common].
setup.py: infer include directories from cmake target
CMakeLists.txt: under python: align install statement.
CMakeLists build python: removed find_package.
src_sunbeam -> cxx.
setup.py: test_suite as string.
setup.py: tests_suite -> test_suite.
setup.py: added exception if 'build_ext' not used.
temporarily moved files to python/sunbeam.
This makes the facility usable for the restart read/write code.
Specifically, import the I/O classes into namespace Opm::ecl, and
place the files in physical location opm/io/eclipse, and move the
test utilities to new top-level directory 'test_util/'. While here,
discontinue the 'testutil' static library since most of its features
are now available in the main 'opmcommon' library. This does entail
compiling a few of the test_util/ CPP files multiple times, and
adding the objects to each executable independently.
Find package_deps is called from <opm-module-name>-prereqs.cmake that is
included in our package configuration files. So it has to be defined early on.
We do this in the package confguration file of opm-common which needs to
be found before any other OPM module.
This fixes the CMake Error seen be e.g. dumux:
CMake Error at opm-grid/opm-grid-prereqs.cmake:37 (find_package_deps):
Unknown CMake command "find_package_deps".