Hi Ken,

thanks for your explanations!  However:

> >In the docs[1], I see that build-time dependencies are specified by a
> >tuple like this one:
> >
> >         ('CMake', '2.8.12', '', ('GCC', '4.8.2'))
> >
> >Now, the first and second slots are for SW name and version.
> >What should go in the 3rd slot (empty string here)?
>
> This syntax is not specific to builddependencies, it can be used for regular
> dependencies too.
>
> The 3rd argument is the versionsuffix (which is empty here),

Good, thanks!

> as mentioned in the documentation you're pointing to. ;-)

Hmmm... not really?  Certainly not in the "dependencies" section :-)


> If you're building with foss/2015b, you can either:
>
> * just like ('CMake', '<version>') as a build dependency, which means there
> needs to be an easyconfig/module for this CMake version built with
> foss/2015b
> * specify that CMake can be built with only a subtoolchain; in the case of
> foss/2015b, you should go with 'GNU' rather than 'GCC', to benefit from the
> GCC+binutils combo that is GNU:
>
>     ('CMake', '<version>', '', ('GNU', '4.9.3-2.25'))
>
> It's important to pick a subtoolchain that is compatible with the toolchain
> used by the parent, to avoid module conflicts/problems.

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'))

Would the following tuple also match that `.eb` file?

        ('Boost', '1.58.0')

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

Reply via email to