diff options
author | Mayeul d'Avezac <mdavezac@gmail.com> | 2016-03-31 10:16:40 +0100 |
---|---|---|
committer | Mayeul d'Avezac <mdavezac@gmail.com> | 2016-03-31 10:16:40 +0100 |
commit | 7430f9142fc3fc590232a21a193321be9de33df7 (patch) | |
tree | 5ebabe57647084c6bbd7fd8963584a430da29047 | |
parent | 397e0d1368d8f6077cb7ea59ee953b993ef3d244 (diff) | |
download | spack-7430f9142fc3fc590232a21a193321be9de33df7.tar.gz spack-7430f9142fc3fc590232a21a193321be9de33df7.tar.bz2 spack-7430f9142fc3fc590232a21a193321be9de33df7.tar.xz spack-7430f9142fc3fc590232a21a193321be9de33df7.zip |
Can install espresso on OS/X
Espresso uses unix utility `find dir -name \*.x` to determine the executable to
install. On OS/X, it also finds a bunch of debug symbols associated
with the exectuble. These files have the same name, but are in a
different directory. So the install process is done by hand in the
package.py file, for OS/X.
-rw-r--r-- | var/spack/repos/builtin/packages/espresso/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/espresso/package.py b/var/spack/repos/builtin/packages/espresso/package.py index 167bb38e38..0dad57a9f6 100644 --- a/var/spack/repos/builtin/packages/espresso/package.py +++ b/var/spack/repos/builtin/packages/espresso/package.py @@ -33,6 +33,7 @@ class Espresso(Package): raise RuntimeError(error.format(variant='elpa')) def install(self, spec, prefix): + from glob import glob self.check_variants(spec) options = ['-prefix=%s' % prefix.bin] @@ -61,5 +62,11 @@ class Espresso(Package): configure(*options) make('all') - make('install') + + if spec.architecture.startswith('darwin'): + mkdirp(prefix.bin) + for filename in glob("bin/*.x"): + install(filename, prefix.bin) + else: + make('install') |