Commit Graph

35 Commits

Author SHA1 Message Date
Zhuo Yang 9ce73efd30 add version of 2.8 and 2.9 2024-11-23 21:23:46 +08:00
Dominic Kempf 7694364c69 dune-codegen now has a 2.7 release 2020-07-10 09:15:29 +00:00
Santiago Ospina De Los Ríos 839e327f95 Add patch for PDELab 2.6
On release 2.6 PDELab had a very old requirement for CMake and didn't allow to install the module properly.
i.e. other modules where not able to resolve its CMake targets correctly. This issue was solved for release 2.7.
2020-07-03 08:55:34 +00:00
Dominic Kempf 4602670ff3 Add a 2.6 release for the Dorie people 2020-06-23 10:38:38 +02:00
Dominic Kempf 3eda19a5e8 dune-grod-glue now has a 2.7 release 2020-06-10 07:34:50 +00:00
Dominic Kempf 4807a17bab PDELab now has a releases/2.7 branch 2020-06-05 14:54:49 +00:00
Dominic Kempf 64ac5770a2 Change PDELab branch - the fix was merged. 2020-06-04 10:36:54 +00:00
Dominic Kempf 4e214973a6 Throw errors if unavailable versions are requested 2020-05-22 11:24:38 +02:00
Dominic Kempf d2b223e38c Respect the build type variant added by the CMakePackage class 2020-05-22 10:33:47 +02:00
Dominic Kempf 7000023d52 Remove some outdated variables 2020-05-20 14:36:03 +00:00
Dominic Kempf c72ed761a5 Remove SIONLib dependency - the package does not yet exist 2020-05-20 14:31:43 +00:00
Dominic Kempf 8c3ebdf0f1 Change iteration variable names to avoid clashes with the rest of Spack
Spack's weird overall architecture makes temporary variables in the
package scope really dangerous. In my case, an iteration variable
'module' caused the perl package to fall over...
2020-05-20 11:19:48 +02:00
Dominic Kempf bc6b155a39 Reduce the number of variants for upstream dependencies
I really do not see much value in e.g. having a switch to build
without BLAS. Instead, cheap upstream dependencies are always built
and expensive ones have a variant. This reduces variant bloat.
2020-05-20 09:52:55 +02:00
Dominic Kempf c930ddd5f0 Introduce variant dependency
The previous approach had the big downside of bypassing
the specified variants through the specified dependencies
of variants. E.g. dune+pdelab~functions would silently ignore
the ~functions aspect, because +pdelab enforces the installation
of dune-functions.

There is no direct mechanism in Spack to specify such
dependencies in a way that enforces the correct variants
on dependent modules. I have now added conflicts between variants
that reflect the Dune module dependencies. In that case
dune+pdelab~functions would throw an error.

This comes at the cost that a command such as
spack install dune+pdelab
is not possible anymore. Instead the user needs to specify
the dependent modules as well:
spack install dune+pdelab+functions+typetree
Note that in order to remove some burden from users,
I removed the variants for the core modules - they are always
installed.
2020-05-19 16:11:46 +02:00
Dominic Kempf bcecb661e0 Make iteration order of versions deterministic to ensure default version 2020-05-19 14:54:15 +02:00
Dominic Kempf c7eb0ed0b5 Add dune-fem to the Spack package 2020-05-19 14:45:48 +02:00
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 bf9c03263f Remove patch for executable scripts - it is in dune-common now 2020-05-18 11:58:16 +02:00
Dominic Kempf a71f2f7bc1 Fix dune-common patch such that it works also on first run 2020-05-15 20:58:09 +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