summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Mesiti <mmesiti@users.noreply.github.com>2021-08-16 13:22:30 +0200
committerGitHub <noreply@github.com>2021-08-16 13:22:30 +0200
commit6110aa374c5077278852ca2c427ad883e80d0de5 (patch)
tree7a95920ae38d7cd6ed6266726b211c198d62ecf5
parent2d047d1f51de2bd61ab787ac17d3a096205b3ee6 (diff)
downloadspack-6110aa374c5077278852ca2c427ad883e80d0de5.tar.gz
spack-6110aa374c5077278852ca2c427ad883e80d0de5.tar.bz2
spack-6110aa374c5077278852ca2c427ad883e80d0de5.tar.xz
spack-6110aa374c5077278852ca2c427ad883e80d0de5.zip
SOMBRERO - tests now in $PATH (#25421)
-rw-r--r--var/spack/repos/builtin/packages/sombrero/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/sombrero/package.py b/var/spack/repos/builtin/packages/sombrero/package.py
index 4ff571d0a8..84459c4a41 100644
--- a/var/spack/repos/builtin/packages/sombrero/package.py
+++ b/var/spack/repos/builtin/packages/sombrero/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from os import symlink
+
from llnl.util.filesystem import join_path
from spack import *
@@ -44,5 +46,7 @@ class Sombrero(MakefilePackage):
install('sombrero.sh', prefix.bin)
# Install all executables
for i in range(1, 7):
- install(join_path('sombrero', 'sombrero{0}'.format(i)),
- sombrero_dir)
+ src = join_path('sombrero', 'sombrero{0}'.format(i))
+ install(src, sombrero_dir)
+ symlink(join_path(sombrero_dir, 'sombrero{0}'.format(i)),
+ join_path(prefix.bin, 'sombrero{0}'.format(i)))