python bindings of fresh master build not working
steps to reproduce
I recreated my stack with the following opts file:
# where to search for modules
DUNE_CONTROL_PATH="/home/christi/Uni/Dune/"
# where to put the build directories
BUILDDIR="/home/christi/Uni/Dune/build.default"
CMAKE_FLAGS="$CMAKE_FLAGS -DTPMC_PREFIX=~/.local/lib/python2.7/site-packages/tpmc/"
CMAKE_FLAGS="$CMAKE_FLAGS -DDUNE_ENABLE_PYTHONBINDINGS=ON -DBUILD_SHARED_LIBS=TRUE"
# CMAKE_FLAGS="$CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Debug"
CMAKE_FLAGS="$CMAKE_FLAGS -DDUNE_GRID_GRIDTYPE_SELECTOR=ON"
CMAKE_FLAGS="$CMAKE_FLAGS -DCMAKE_CXX_COMPILER=g++ -DDUNE_MAX_TEST_CORES=8"
CMAKE_FLAGS="$CMAKE_FLAGS -DCMAKE_CXX_FLAGS='-fPIC -g -O2'"
during build I get informed that a dune python environment is setup in in /home/christi/Uni/Dune/build.default/dune-python-env/
. Running a simple dune python script:
test-ug.py
:
import math
import dune.common
import dune.grid
import sys
base = "../../../doc/grids/gmsh/"
reader = (dune.grid.reader.gmsh, base+"circle2ndorder.msh")
grid = dune.grid.ugGrid(reader, dimgrid=2)
assert(grid)
print(grid)
sys.exit(0)
results in
Traceback (most recent call last):
File "/home/christi/Uni/Dune/grid/dune/grid/test/test-ug.py", line 9, in <module>
assert(grid)
AssertionError
Apparently no code is generated and I also can't find a dune-py
module, which I thought would be setup to build the dynamically generated components.
expected behaviour
- the python venv should include a
dune-py
, - running the script should generate and compile some additional components,
- ugGrid should be loaded from the gmsh file, and
- the script should exit with code 0