setup-python.py fails

Following the documentation at https://dune-project.org/doc/pythonbindings/ I tried to setup the python bindings using the "second approach".

I enabled the bindings via -DDUNE_ENABLE_PYTHONBINDINGS=True and it seems to have built successfully.

christi@trinidad:~/Uni/Dune$ ./common/bin/setup-dunepy.py --opts=opts
Traceback (most recent call last):
  File "/home/christi/Uni/Dune/./common/bin/setup-dunepy.py", line 131, in <module>
    main(sys.argv[1:])
  File "/home/christi/Uni/Dune/./common/bin/setup-dunepy.py", line 95, in main
    duneModules = select_modules()
  File "/home/christi/Uni/Dune/common/python/dune/common/module.py", line 223, in select_modules
    modules = find_modules(get_module_path())
  File "/home/christi/Uni/Dune/common/python/dune/common/module.py", line 42, in find_modules
    description = Description(os.path.join(root, 'dune.module'))
  File "/home/christi/Uni/Dune/common/python/dune/packagemetadata.py", line 117, in __init__
    raise ValueError('Invalid key:value pair (' + line + ').')
ValueError: Invalid key:value pair (parse_doxyfile () {).

The Problem seems to be twofold.

  1. setup-python.py does not use the DUNE_CONTROL_PATH.
  2. the parser is not able to interpret the file properly, as it does not execute and evaluate statements, but simply tries to match assignments.