Steven Rieder
Steven Rieder
In Macports, there is the "variants" option that we can use to specify the MPI flavour to use. E.g. "port install amuse-framework +openmpi" or "port install amuse-framework +mpich", where either...
https://guide.macports.org/#development
This seems like it's very doable so I'll try to make a package for amuse-framework soon.
Let's keep Homebrew in a separate issue though (just opened #527), it's quite different from macports.
Here's a first version of a Portfile for amuse-framework. It seems to work for me but is probably still lacking in many ways (for instance, many versions are hard-coded). https://gist.github.com/rieder/b065f4ec562f0e93a3891c5db8cd9c1f
Also, this would allow for different versions of libraries to be used for different community code packages, if this were necessary.
libhdf5 is not necessary for framework, is it? Only h5py is... I'd try to avoid including configs at a higher level. If two community codes need the same library, no...
Renamed the code
Ah, I see. Since the optparse module is deprecated, we should then aim to replace it with an argparse equivalent.
No rush though, optparse will not be removed any time soon. https://www.python.org/dev/peps/pep-0389/#deprecation-of-optparse