Hello my snapping friends -
To get started with snapped Spack, all you have to do is install it from the Snap Store:
sudo snap install spack --edge --classic
You should then be able to use the snapped Spack as you would normally use Spack on your system. The key difference to note is that I have patched Spack to direct users to enable shell support using custom shell scripts in
/etc/spack/shell, rather than using the shell support scripts located in
$spack/share/spack. I made these patches because:
- I did not want to encourage users to run executables located in
/snap/spack/rev-#if they were not defined as apps in snapcraft.yaml.
- Prevent the scripts from mutating the users’ PATH environment variable to use the
spackexecutable located in
/snap/spack/rev-#/bin/spack, and instead use the predefined
You can view the patch file I created here to see what I specifically changed.
If your interested in helping to test the Spack snap, but you haven’t used Spack much before, check out the Spack tutorial documentation by the Spack community. It’s a great resource for getting started with Spack. If you’re an old pro with Spack, please just use the Spack snap as you would normally use Spack.
With that, happy testing, and please report all issues or suggestions you have as a reply to this post. Let’s make this snap great