From 9c218079f00e9b3c7285cd94dcc7836531f722a5 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Wed, 6 May 2020 21:49:46 -0500 Subject: Install RMPISNOW wrapper in prefix.bin for r-snow (#16479) If using mpirun, the R sessions can be started with a wrapper script that helps set up the R session cluster. Put this wrapper in the PATH so it is easily accessible. --- var/spack/repos/builtin/packages/r-snow/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/r-snow/package.py b/var/spack/repos/builtin/packages/r-snow/package.py index 393ca50444..9d07e4943b 100644 --- a/var/spack/repos/builtin/packages/r-snow/package.py +++ b/var/spack/repos/builtin/packages/r-snow/package.py @@ -17,3 +17,8 @@ class RSnow(RPackage): version('0.4-2', sha256='ee070187aea3607c9ca6235399b3db3e181348692405d038e962e06aefccabd7') depends_on('r@2.13.1:', type=('build', 'run')) + + @run_after('install') + def install_wrapper(self): + mkdir(self.prefix.bin) + install('inst/RMPISNOW', self.prefix.bin) -- cgit v1.2.3-70-g09d2