Commit Graph

40 Commits

Author SHA1 Message Date
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 87b631a1e4 [!9] Enforce variants by disallowing CMake to search for disabled dependencies
Merge branch 'feature/enforce-variants' into 'master'

ref:spack/dune-spack\> In my case, some system libraries still slipped in
though I do not know how exactly.

See merge request [spack/dune-spack!9]

  [spack/dune-spack!9]: gitlab.dune-project.org/spack/dune-spack/merge_requests/9
2020-05-15 09:26:47 +00:00
Dominic Kempf 3c6941ca42 [!8] Feature/fix python with multiple versions
Merge branch 'feature/fix-python-with-multiple-versions' into 'master'

ref:spack/dune-spack\> 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.

This fixes [#8]

See merge request [spack/dune-spack!8]

  [#8]: gitlab.dune-project.org/NoneNone/issues/8
  [spack/dune-spack!8]: gitlab.dune-project.org/spack/dune-spack/merge_requests/8


Closes #8
2020-05-15 09:19:27 +00:00
Dominic Kempf c1bcb57367 [!7] Variant restructuring
Merge branch 'feature/variant-restructuring' into 'master'

ref:spack/dune-spack\> 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.

Sits on top of [!6]

See merge request [spack/dune-spack!7]

  [!6]: gitlab.dune-project.org/NoneNone/merge_requests/6
  [spack/dune-spack!7]: gitlab.dune-project.org/spack/dune-spack/merge_requests/7
2020-05-15 09:19:17 +00:00
Dominic Kempf a3e5890ca9 [!6] Some cleanup
Merge branch 'feature/cleanups' into 'master'

ref:spack/dune-spack\> Regarding coding style and use of Spack functions.

Builds on top of [!5]

See merge request [spack/dune-spack!6]

  [!5]: gitlab.dune-project.org/NoneNone/merge_requests/5
  [spack/dune-spack!6]: gitlab.dune-project.org/spack/dune-spack/merge_requests/6
2020-05-15 09:19:07 +00:00
Dominic Kempf 74319f96f9 [!5] Add support for different versions (master + 2.7) and refactor a bit
Merge branch 'feature/versions-and-refactoring' into 'master'

ref:spack/dune-spack\> This should have been two merge requests really, but by
the time I finished it was much harder to separate the two from each other
than just throw it online\...

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 from upstream in
_get_needed_resources: Instead, it modifies the resource list to include the
transitive closure of Dune module dependencies and then calls the original
implementation.

@gauthier.folzan I would be really interested in your opinion on this.

This fixes [#2].

See merge request [spack/dune-spack!5]

  [#2]: gitlab.dune-project.org/NoneNone/issues/2
  [spack/dune-spack!5]: gitlab.dune-project.org/spack/dune-spack/merge_requests/5


Closes #2
2020-05-15 09:18:58 +00: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 a1aa78f02f Concretize both master and 2.7 release in CI job 2020-05-13 18:40:15 +02:00
Dominic Kempf 2d4e0548de Merge branch 'master' into feature/versions-and-refactoring 2020-05-13 18:38:52 +02:00
Dominic Kempf 2d623b0e25 [!4] Finish CI setup
Merge branch 'feature/ci-setup-2' into 'master'

ref:spack/dune-spack\> This finishes the CI setup after an initial merge that
was necessary to start running CI on the project.

See merge request [spack/dune-spack!4]

  [spack/dune-spack!4]: gitlab.dune-project.org/spack/dune-spack/merge_requests/4
2020-05-13 16:38:17 +00:00
Dominic Kempf d3af0fd937 Build docker images with spack inside
This prevents that the executing runner needs to be prepared to access GitHub
2020-05-13 16:38:17 +00: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 bf5d6f1e23 [!3] First attempt of a gitlab ci setup
Merge branch 'feature/ci-setup' into 'master'

ref:spack/dune-spack\> This fixes [#1]

See merge request [spack/dune-spack!3]

  [#1]: gitlab.dune-project.org/NoneNone/issues/1
  [spack/dune-spack!3]: gitlab.dune-project.org/spack/dune-spack/merge_requests/3


Closes #1
2020-05-13 11:15:25 +00:00
Dominic Kempf dad7a0d320 First attempt of a gitlab ci setup 2020-05-13 13:10:29 +02:00
Dominic Kempf c29a27f028 [!1] Make gawk a dependency of dune
Merge branch 'bugfix/add-gawk' into 'master'

ref:spack/dune-spack\> The duneproject script uses awk. On my machine it fails
because system awk is messed up by the spack set-up LD_LIBRARY_PATH.

See merge request [spack/dune-spack!1]

  [spack/dune-spack!1]: gitlab.dune-project.org/spack/dune-spack/merge_requests/1
2020-05-13 10:54:25 +00:00
Dominic Kempf cb80213cf3 [!2] Add a disclaimer
Merge branch 'feature/disclaimer' into 'master'

ref:spack/dune-spack\> As the repository is public, we should warn about its
experimental status.

See merge request [spack/dune-spack!2]

  [spack/dune-spack!2]: gitlab.dune-project.org/spack/dune-spack/merge_requests/2
2020-05-13 10:23:27 +00:00
Dominic Kempf 5e0e262b5d Add a disclaimer
As the repository is public, we should warn about its experimental status.
2020-05-13 12:22:31 +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 d6c65b8249 Cleaning 2020-05-10 21:42:32 +02:00
Gauthier Folzan 7df7c12c38 removing useless package 2020-05-10 21:38:06 +02:00
Gauthier Folzan f8ea9197b9 update README3 2020-05-10 21:36:47 +02:00
Gauthier Folzan 845d5b4844 update README2 2020-05-10 21:35:21 +02:00
Gauthier Folzan 28d3e1d34e Update README 2020-05-10 21:33:26 +02:00
Gauthier Folzan 99615d3cdd Unique package with one variant per module 2020-05-10 21:21:48 +02:00
Gauthier Folzan 93193cd33d Corrections 2020-05-10 19:22:50 +02:00
Gauthier Folzan f66f17e645 Missing quote 2020-04-06 11:30:52 +02:00
Gauthier Folzan ea5a689876 small explanation about how to create a new module 2020-04-06 10:23:12 +02:00
Gauthier Folzan 8076c3b4f8 Dummy module to facilitate developement of new modules 2020-04-06 10:02:27 +02:00
Gauthier Folzan bbd682d03d Shared lib by default 2020-04-02 13:08:18 +02:00
Gauthier Folzan 4bfe34f2fc Adding dune-functions and dune-typetree 2020-04-02 13:07:33 +02:00
Gauthier Folzan 540f0a02e4 Some cleaning and missing file for spack repo 2020-03-31 17:27:00 +02:00
Gauthier Folzan dbeea6ff98 First commit 2020-03-30 22:22:34 +02:00
gauthier12 22271042cf
Initial commit 2020-03-30 22:20:53 +02:00