Commit Graph

17 Commits

Author SHA1 Message Date
Dominic Kempf 4dbf9e9e27 Add some easy to implement Dune modules to the Spack package 2020-05-19 13:57:43 +02:00
Dominic Kempf 7af542f4ab Add dune-codegen to the dune package 2020-05-19 12:44:15 +02:00
Dominic Kempf 7519e4aeec Add dune-pdelab to the Spack package 2020-05-18 13:39:12 +02:00
Dominic Kempf aaf522074b Make sure that the python directories are in the user space 2020-05-18 12:42:46 +02:00
Dominic Kempf 3befb49555 Fixup 2020-05-18 12:00:26 +02:00
Dominic Kempf f42ced7562 Add a dune-testtools resource to the package 2020-05-15 15:12:12 +02:00
Dominic Kempf 50f4914044 [bugfix] Reset dunecontrol path to undefined instead of wrong path 2020-05-15 11:46:23 +02:00
Dominic Kempf abbfb9104b Enforce variants by disallowing CMake to search for disabled dependencies
In my case, some system libraries still slipped in though I do not
know how exactly.
2020-05-15 11:17:45 +02:00
Dominic Kempf dea7241fbc Fix mechanism to install Python bindings
Actually, make install already installs Python packages,
so there is no need to do it manually in a post-install hook.

Additionally, we set the DUNE_PY_DIR and DUNE_CONTROL_PATH
environment variables, so that the Python bindings work even
in presence of multiple installations.
2020-05-15 11:15:38 +02:00
Dominic Kempf ea1031bad9 Go through variants and dependencies and remove unneeded ones
Some of the variants/dependencies in the prototype were unneeded,
I went through also with a keen eye on keeping the total number
of variants a bit lower. I also added defaults that I consider
useful.
2020-05-14 11:34:39 +02:00
Dominic Kempf 0be0632f45 Remove superfluous pass statements 2020-05-14 09:41:22 +02:00
Dominic Kempf 1c0ec5ad8a Remove calls to set_executable
The dunecontrol script should always be executable, so there is
(hopefully) no need of calling this function.
2020-05-14 09:39:56 +02:00
Dominic Kempf df503f9038 Use context manager for open/close 2020-05-14 09:36:52 +02:00
Dominic Kempf fae067a0d7 Use join_path from spack instead of string concatenation 2020-05-14 09:34:50 +02:00
Dominic Kempf 5bc079bd0a Add support for different versions (master + 2.7) and refactor a bit
This adds a loop with versions around the resource definitions allowing
for multiple versions of the dune package with the expected behaviour
of dependency forwarding to Dune modules.

Additionally, it avoids the code duplication of _get_needed_resources:
It modifies the resource list to include the transitive closure of
Dune module dependencies and then calls the original implementation.
2020-05-13 18:24:25 +02:00
Dominic Kempf cfc2682f58 Make gawk a dependency of dune
The duneproject script uses awk. On my machine it fails because system awk
is messed up by the spack set-up LD_LIBRARY_PATH.
2020-05-13 12:15:38 +02:00
Gauthier Folzan 99615d3cdd Unique package with one variant per module 2020-05-10 21:21:48 +02:00