summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2020-05-06 21:49:46 -0500
committerGitHub <noreply@github.com>2020-05-06 21:49:46 -0500
commit9c218079f00e9b3c7285cd94dcc7836531f722a5 (patch)
tree34e894bc96a037c858577a2e3d5af2077e0f0342
parent18e1e2424fb10cb13bcbd2b2d1d986700912e35c (diff)
downloadspack-9c218079f00e9b3c7285cd94dcc7836531f722a5.tar.gz
spack-9c218079f00e9b3c7285cd94dcc7836531f722a5.tar.bz2
spack-9c218079f00e9b3c7285cd94dcc7836531f722a5.tar.xz
spack-9c218079f00e9b3c7285cd94dcc7836531f722a5.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/r-snow/package.py5
1 files changed, 5 insertions, 0 deletions
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)