{"id":20099034,"url":"https://github.com/spack/spack-snap","last_synced_at":"2025-03-02T16:41:25.699Z","repository":{"id":198125550,"uuid":"699994117","full_name":"spack/spack-snap","owner":"spack","description":"A snap package for Spack","archived":false,"fork":false,"pushed_at":"2024-05-01T14:09:02.000Z","size":65,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-02T05:02:58.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-03T18:32:32.000Z","updated_at":"2025-01-19T01:28:47.000Z","dependencies_parsed_at":"2024-02-16T20:25:07.214Z","dependency_job_id":"ddfb5b44-98f8-446d-816b-255f16fc1352","html_url":"https://github.com/spack/spack-snap","commit_stats":null,"previous_names":["canonical/spack-snap","spack/spack-snap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spack%2Fspack-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spack%2Fspack-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spack%2Fspack-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spack%2Fspack-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spack","download_url":"https://codeload.github.com/spack/spack-snap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541360,"owners_count":19979117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:07:51.912Z","updated_at":"2025-03-02T16:41:25.679Z","avatar_url":"https://github.com/spack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./assets/spack-logo.svg\" width=\"200\" height=\"200\" alt=\"Spack logo\"\u003e\n\u003cbr\u003e\n\n# Spack\n\nA [snap](https://snapcraft.io/about) package for [Spack](https://spack.io/about/) - a flexible package manager and development tool for supercomputers.\n\n[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/spack)\n\n\u003c/div\u003e\n\n\u003e __Note:__ The Spack snap is currently only available within the edge channel on the Snap Store as the initial call for testing window is open.\n\u003e Interested in testing this new snap package? See the [Spack snap call-for-testing thread](https://forum.snapcraft.io/t/call-for-testing-spack-0-20-2/37272)\n\u003e on the Snapcraft forum. Please report all this issues and/or suggestions on call-for-testing thread.\n\n## Features\n\nSpack is a package manager and development tool for supercomputers. Spack supports\ninstalling 7000+ packages and supports several different build systems and compiler\nbackends. Packages installed using Spack peacefully coexist with other packages\ninstalled using the distribution package manager. Spack uses `RPATH` to link\ndependencies rather than `LD_LIBRARY_PATH`; there is no need to worry about conflicting\nlibraries messing with binary executables. Each install is unique and will not break\nother existing installations on your host system.\n\n## Usage\n\nThis section provides a brief overview of how to use the Spack snap on your system.\nFor more in-depth information on how to use Spack on your system, see the \n[Spack Usage](https://spack.readthedocs.io/en/latest/basic_usage.html) section in\nSpack's official upstream documentation.\n\n#### Installing Spack using snap\n\n```shell\nsudo snap install spack --edge --classic\n```\n\n#### Installing packages\n\n```shell\n# Install compilers on your system.\nsudo apt update\nsudo apt install gcc g++ gfortran make\n\n# Load compiler configuration into Spack.\nspack compiler find\n\n# Install a package.\nsudo spack install \u003cpackage_name\u003e\n\n# Uninstall a package.\nsudo spack uninstall \u003cpackage_name\u003e\n```\n\n#### Installing packages in `/home/\u003cuser\u003e` rather than in `/opt/spack/*`\n\n```shell\n# Create .spack in your home directory.\nmkdir -p ~/.spack\n\n# Set local configuration file in place.\ncat \u003c\u003c EOF \u003e ~/.spack/config.yaml\nconfig:\n  install_tree: $user/.spack/opt/spack\n  license_dir: $user/.spack/etc/spack/licenses\n  source_cache: $user/.spack/var/spack\n  environments_root: $user/.spack/env\nEOF\n\n# Install packages as you normally would.\nspack install \u003cpackage_name\u003e\n```\n\n#### Enabling shell support\n\n```shell\n# On bash/zsh/sh/etc.\n. /etc/spack/shell/setup-env.sh\n\n# On csh/tcsh.\nsource /etc/spack/shell/setup-env.csh\n\n# On fish.\nsource /etc/spack/shell/setup-env.fish\n\n# Load your packages.\nspack load \u003cpackage_name\u003e\n```\n\n## Building the Spack snap\n\nWant to build and test the Spack snap locally without pulling from the Snap Store? \nUse the following commands to build and install the Spack snap on your system. These\ninstructions assume that you are running on a Linux distribution that supports \ninstalling snap packages. Please see [this page](https://snapcraft.io/docs/installing-snapd) \nfor a list of Linux distributions that support using snap packages.\n\n#### Clone Repository\n\n```shell\ngit clone git@github.com:canonical/spack-snap.git\ncd spack-snap\n```\n\n#### Installing and Configuring Prerequisites\n\n```shell\nsudo snap install lxd\nsudo lxd init --minimal\nsudo snap install snapcraft --classic\n```\n\n#### Packing and Installing the Snap\n\n```shell\nsnapcraft\nsudo snap install ./spack*.charm --dangerous --classic\n```\n\n## License\n\nThis project is part of Spack. Spack is distributed under the terms of both the \nMIT license and the Apache License (Version 2.0). Users may choose either license, \nat their option.\n\nAll new contributions must be made under both the MIT and Apache-2.0 licenses.\n\nSee [LICENSE-MIT](./LICENSE-MIT), [LICENSE-APACHE](./LICENSE-APACHE), \nand [COPYRIGHT](./COPYRIGHT) for details.\n\nSPDX-License-Identifier: (Apache-2.0 OR MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspack%2Fspack-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspack%2Fspack-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspack%2Fspack-snap/lists"}