Update Anaconda3 -- add version 2023.09-0 for x86_64, aarch64, and ppc64le (#40622)
* Add 2023.09-0 for x86_64, aarch64, and ppc64le extend the anaconda3 package.py to support aarch64 and ppc64le. add the latest version of anaconda3 to each new platform, including the existing x86_64 * formatting
This commit is contained in:
parent
6f9425c593
commit
94d143763e
@ -3,6 +3,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
import platform
|
||||
from os.path import split
|
||||
|
||||
from spack.package import *
|
||||
@ -22,6 +23,29 @@ class Anaconda3(Package):
|
||||
|
||||
maintainers("ajkotobi")
|
||||
|
||||
if platform.machine() == "ppc64le":
|
||||
version(
|
||||
"2023.09-0",
|
||||
sha256="5ea1ed9808af95eb2655fe6a4ffdb66bea66ecd1d053fc2ee69eacc7685ef665",
|
||||
expand=False,
|
||||
)
|
||||
elif platform.machine() == "aarch64":
|
||||
version(
|
||||
"2023.09-0",
|
||||
sha256="69ee26361c1ec974199bce5c0369e3e9a71541de7979d2b9cfa4af556d1ae0ea",
|
||||
expand=False,
|
||||
)
|
||||
elif platform.machine() == "x86_64":
|
||||
version(
|
||||
"2023.09-0",
|
||||
sha256="6c8a4abb36fbb711dc055b7049a23bbfd61d356de9468b41c5140f8a11abd851",
|
||||
expand=False,
|
||||
)
|
||||
version(
|
||||
"2023.07-2",
|
||||
sha256="589fb34fe73bc303379abbceba50f3131254e85ce4e7cd819ba4276ba29cad16",
|
||||
expand=False,
|
||||
)
|
||||
version(
|
||||
"2022.10",
|
||||
sha256="e7ecbccbc197ebd7e1f211c59df2e37bc6959d081f2235d387e08c9026666acd",
|
||||
@ -189,6 +213,10 @@ class Anaconda3(Package):
|
||||
expand=False,
|
||||
)
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "https://repo.anaconda.com/archive/Anaconda3-{0}-Linux-{1}.sh"
|
||||
return url.format(version, platform.machine())
|
||||
|
||||
def install(self, spec, prefix):
|
||||
dir, anaconda_script = split(self.stage.archive_file)
|
||||
bash = which("bash")
|
||||
|
Loading…
Reference in New Issue
Block a user