easybuilders / easybuild-easyconfigs

A collection of easyconfig files that describe which software to build using which build options with EasyBuild.
https://easybuild.io
GNU General Public License v2.0
380 stars 704 forks source link

Installing CPLEX and problem with tailoring multi_deps #10032

Open moravveji opened 4 years ago

moravveji commented 4 years ago

Hi

I am trying to install CPLEX, which can be built with Python 2 and 3. In the easyconfig file, there appears the following line:

multi_deps = {'Python': ['3.6.5', '2.7.14']}

However, the two Python modules that I would like to use appear to have a suffix after the module names:

Python/2.7.14-GCCcore-6.4.0-bare
Python/3.6.5-GCCcore-6.4.0-bare

Is it possible to modify the multi_deps to accept module names with suffixes? I already have opened an issue #10031 in the same regard.

As a workaround, I was wondering if the modules listed under multi_deps could be taken out into dependencies, and build two separate versions of the same sofware (with extra name tweaks)?

Regards Ehsan

Thanks Ehsan

kelseymh commented 4 years ago

I had a similar issue, and I'm just learning all this stuff. What I ended up doing as a workaround is just what you described,

As a workaround, I was wondering if the modules listed under multi_deps could be taken out into dependencies, and build two separate versions of the same sofware (with extra name tweaks)?

I created two .eb files, one for each Python version, where the "-bare" extra suffix could be dealt with. The downside (to me) was that meant it took twice as long to build, and you end up with a bunch of duplicated installation.

If there are extra keys you can use with multi_deps (as there apparently are with exts_list), that would be great!