Joakim Hove
ec1c315968
Python files should go in $PREFIX/dist-packages on debian
2020-04-29 10:49:49 +02:00
Arne Morten Kvarving
c22a4ff980
changed: mark pybind11 headers as system headers
...
to quell some (shadowing) warnings
2020-04-21 09:00:30 +02:00
Torbjørn Skille
54087e3bd8
Effective LOD for ESmry
2020-04-19 20:59:38 +02:00
Joakim Hove
92e923b567
Merge pull request #1706 from joakim-hove/test-clean-srcdir
...
Rework testing of Schedule exit status
2020-04-15 21:56:55 +02:00
Joakim Hove
43e2fced7d
Simplified testing of exit status
2020-04-15 21:04:26 +02:00
Markus Blatt
8e3ba156a6
Merge pull request #1675 from blattms/refactor-policy-settings
...
Fix policy warnings
2020-04-15 21:01:35 +02:00
Markus Blatt
742d8943ca
Move policy settings to OpmInit and into a macro OpmSetPolicies().
...
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.
2020-04-15 14:17:53 +02:00
Joakim Hove
1c84c4c3f3
Add new keyword EXIT
...
The keyword EXIT is a opm only keyword which can be used to terminate the whole
simulation as part of the ACTIONX keyword.
2020-04-14 16:32:52 +02:00
Joakim Hove
4b687e3368
Fix bug in CMakeLists.txt - mock simulator tests were not built
2020-03-24 07:23:31 +01:00
Arne Morten Kvarving
8233ae200c
Merge pull request #1515 from akva2/python_debian_packaging
...
Add debian packaging of python bindings
2020-02-26 12:22:01 +01:00
Arne Morten Kvarving
6e0a581764
remove unused cmake option
2020-02-26 11:57:37 +01:00
Arne Morten Kvarving
c765b769fa
fixed: set LD_LIBRARY_PATH so python tests can find the library
...
necessary when building shared lib
2020-02-26 11:56:02 +01:00
Bård Skaflestad
df21acfc49
Merge pull request #1492 from akva2/conditional_test_suite
...
changed: disable building of test suite if Boost::test is not found
2020-02-24 20:30:53 -06:00
Joakim Hove
269802ae48
Add comment about locating shared library while testing Python
2020-02-19 12:33:50 +01:00
Arne Morten Kvarving
f76daabbb4
changed: disable building of test suite if Boost::test is not found
2020-02-19 12:25:32 +01:00
Joakim Hove
6b0073455b
Pass RPATH to the python setup.py based build system
2020-02-06 10:15:40 +01:00
Arne Morten Kvarving
8cf1497ccb
fixed: use PROJECT_XXX instead of CMAKE_XXX
...
make it work fine with the 'super-build' CMakeLists.txt
2020-01-13 13:38:47 +01:00
Joakim Hove
3c6a60c4a9
Code genereator will create many source files
2020-01-02 15:27:54 +01:00
Joakim Hove
c3a038c2b6
Refactor code generation to facilitate multiple source files
2020-01-02 15:27:54 +01:00
Joakim Hove
885093d472
Use DEST_PREFIX when installing python code
2019-11-27 23:46:32 +01:00
Torbjørn Skille
59e0c39558
New program summary based on OPM I/O classes
2019-11-12 13:27:26 +01:00
Joakim Hove
d66852d8de
Rewrite EclFile wrapping
...
- 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()
2019-11-06 09:59:07 +01:00
Torbjørn Skille
7cacc734e8
python binding for EclFile
2019-11-06 09:59:07 +01:00
Joakim Hove
0b8a42fd1f
Fix cmake find pythonlibs
2019-11-06 09:59:07 +01:00
Joakim Hove
0d2f57354a
Merge pull request #1184 from joakim-hove/python-dep
...
Add Python library to opm-common_LIBRARIES cmake variable
2019-11-04 13:16:32 +01:00
Joakim Hove
a7187abc17
Initial implementation of 3D properties
2019-10-31 11:18:55 +01:00
Joakim Hove
176e7f75ed
Add Python library to opm-common_LIBRARIES cmake variable
2019-10-31 07:07:07 +01:00
Arne Morten Kvarving
95a129cbed
fixed: let's not copy the files twice
2019-10-29 14:59:08 +01:00
Joakim Hove
9d1b7a83d9
Changes in Python build:
...
- Use python/install.py to copy from source tree to build tree
- List Cxx source files in CMakeLists_files.cmake
2019-10-28 21:42:57 +01:00
Joakim Hove
d382c57145
Add small python script to determine extension suffix
2019-10-28 20:30:39 +01:00
Joakim Hove
162d0e0902
Minor change to python enable script
2019-10-25 08:54:40 +02:00
Arne Morten Kvarving
93ac533373
changed: put the generated ParserKeywords.cpp first in list
...
this improves build throughput on jenkins since building this
large file will overlap more with other build tasks.
2019-10-17 11:40:48 +02:00
Joakim Hove
e815194e21
Merge pull request #1112 from stefoss23/remove_common_state
...
Remove common state
2019-10-17 06:58:25 +02:00
Arne Morten Kvarving
247b5685cc
remove libecl from buildsystem, jenkins and packaging
2019-10-16 20:03:08 -05:00
Steinar Foss
0e5c14568e
removed common_state.
2019-10-16 13:59:00 +02:00
Joakim Hove
5269f52291
Merge pull request #1075 from joakim-hove/python-install
...
Add Python copy/install hack
2019-10-14 18:46:48 +02:00
Joakim Hove
7dc77d1ca3
Install PYTHON Modules when running jenkins
2019-10-14 15:53:31 +02:00
Joakim Hove
59b73a0667
Change the python installation code
...
- 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
2019-10-14 13:13:09 +02:00
Steinar Foss
c0bd19c59e
python: added class UnitSystem.
2019-10-11 22:02:54 +02:00
Joakim Hove
204ea1a1a2
Use ${PYTHON_EXECUTABLE} instead of 'python' in CMakeLists.txt
2019-10-04 20:14:27 +02:00
Joakim Hove
69ddffc966
Expose C++ objects to Python runtime
2019-09-23 21:31:45 +02:00
Joakim Hove
230c4494ed
Add Python wrapping for OpmLog
2019-09-23 14:35:25 +02:00
Steinar Foss
dd4cce4e9a
python: removed group_tree.
2019-09-21 11:52:44 +02:00
Joakim Hove
d2ff536cf3
Renamed python/cxx/common -> python/cxx/export
2019-09-13 09:40:13 +02:00
Arne Morten Kvarving
16d38c3245
fix python link for dependents
2019-09-09 11:16:58 +02:00
Arne Morten Kvarving
97ad4baa99
quell warnings
2019-09-09 11:16:58 +02:00
Joakim Hove
ab2ea1acf3
Add basic manager class fro Python interpreter
2019-09-09 10:58:26 +02:00
Joakim Hove
7984d2a0f4
Expose the Parser class properly to Python
2019-09-05 08:44:47 +02:00
Joakim Hove
723113b3b9
Add small shell script templates to simplify Python development
2019-09-05 08:44:47 +02:00
Steinar Foss
554ceb87dd
setup.py will install python packages.
...
setup.py install to CMAKE_INSTALL_PREFIX.
cmake will create python install dir.
2019-08-15 17:00:43 +02:00