Hi Riccardo,
> On 22 Sep 2015, at 05:43, Riccardo Murri <[email protected]> wrote:
>
> Thanks for the explanation: this clarifies things a bit. However, the
> "CMake" example was just copy+paste'd from the docs. What I need is to
> insert a dependency on the Boost library.
>
> So let me ask more specific questions: Assume I want to specify a
> dependency on `Boost-1.58.0-foss-2015b-Python-2.7.10.eb` Would that
> translate into the following dependency tuple?
>
> ('Boost', '1.58.0', 'Python-2.7.10', ('foss', '2015b'))
That would certainly correspond with the Boost easyconfig file you mention, but
it's very unlikely you'd specify it like this, because the toolchain you
specify here needs to be compatible with the one specified in the 'toolchain ='
line of the .eb file where you include this dep. in practice, hard specifying
the toolchain for a dep only occurs with subtoolchains (GCC, GNU, gompi, etc).
>
> Would the following tuple also match that `.eb` file?
>
> ('Boost', '1.58.0')
No, because not listing the versionsuffix implies that it's empty, while your
easyconfig has '-Python-2.7.10' as versionsuffix.
This may match:
('Boost', '1.58.0', '-Python-2.7.10')
but only if this line is also in the .eb file where you include Boost as a dep:
toolchain = {'name': 'foss', 'version': '2015'}
In other words: unless the toolchain is specified, the dep 'inherits' the
toolchain from the 'parent'.
K.
>
> Thanks,
> Riccardo
>
> --
> Riccardo Murri
> http://www.s3it.uzh.ch/about/team/#Riccardo.Murri
>
> S3IT: Services and Support for Science IT
> University of Zurich
> Winterthurerstrasse 190, CH-8057 Zürich (Switzerland)
>
> Tel: +41 44 635 4222
> Fax: +41 44 635 6888