diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2020-05-14 02:49:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 12:49:42 -0500 |
commit | 66b896d286b3b9edc269a60bdfffe44163a904b1 (patch) | |
tree | 0604202420da491c4bc6d0647f3f387f9025b1a8 | |
parent | a9ee4da67012344d6ab31db901556dbeb00b2b52 (diff) | |
download | spack-66b896d286b3b9edc269a60bdfffe44163a904b1.tar.gz spack-66b896d286b3b9edc269a60bdfffe44163a904b1.tar.bz2 spack-66b896d286b3b9edc269a60bdfffe44163a904b1.tar.xz spack-66b896d286b3b9edc269a60bdfffe44163a904b1.zip |
conda4aarch64:New Package. (#16617)
-rw-r--r-- | var/spack/repos/builtin/packages/conda4aarch64/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/conda4aarch64/package.py b/var/spack/repos/builtin/packages/conda4aarch64/package.py new file mode 100644 index 0000000000..fe7ede5c14 --- /dev/null +++ b/var/spack/repos/builtin/packages/conda4aarch64/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Conda4aarch64(Package): + """Conda for aarch64""" + + homepage = "https://anaconda.org/c4aarch64/" + url = "https://github.com/jjhelmus/conda4aarch64/releases/download/1.0.0/c4aarch64_installer-1.0.0-Linux-aarch64.sh" + + conflicts('arch=x86_64:') + conflicts('arch=ppc64:') + conflicts('arch=ppc64le:') + + version('1.0.0', sha256='165565dc7e7cc74c9ef8fd75d309fb7b81a6d1bc5e2eab48aafa7b836a7427af', expand=False) + + def install(self, spec, prefix): + conda_script = self.stage.archive_file + bash = which('bash') + bash(conda_script, '-b', '-f', '-p', self.prefix) |