miniconda3: add ppc64le package version (#21196)
It requires reorganizing version definitions to facilitate adding new architectures. This is inspired from the cuda package.
This commit is contained in:
parent
b76d21710b
commit
af1eda5359
1 changed files with 29 additions and 10 deletions
|
@ -5,23 +5,42 @@
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
from os.path import split
|
from os.path import split
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
|
_versions = {
|
||||||
|
'4.9.2': {
|
||||||
|
'Linux-ppc64le': ('2b111dab4b72a34c969188aa7a91eca927a034b14a87f725fa8d295955364e71', 'https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-ppc64le.sh'),
|
||||||
|
'Linux-x86_64': ('1314b90489f154602fd794accfc90446111514a5a72fe1f71ab83e07de9504a7', 'https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh')},
|
||||||
|
'4.8.2': {
|
||||||
|
'Linux-x86_64': ('5bbb193fd201ebe25f4aeb3c58ba83feced6a25982ef4afa86d5506c3656c142', 'https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh')},
|
||||||
|
'4.7.12.1': {
|
||||||
|
'Linux-x86_64': ('bfe34e1fa28d6d75a7ad05fd02fa5472275673d5f5621b77380898dee1be15d2', 'https://repo.continuum.io/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh')},
|
||||||
|
'4.6.14': {
|
||||||
|
'Linux-x86_64': ('0d6b23895a91294a4924bd685a3a1f48e35a17970a073cd2f684ffe2c31fc4be', 'https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh')},
|
||||||
|
'4.5.11': {
|
||||||
|
'Linux-x86_64': ('ea4594241e13a2671c5b158b3b813f0794fe58d514795fbf72a1aad24db918cf', 'https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh')},
|
||||||
|
'4.5.4': {
|
||||||
|
'Linux-x86_64': ('80ecc86f8c2f131c5170e43df489514f80e3971dd105c075935470bbf2476dea', 'https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh')},
|
||||||
|
'4.3.30': {
|
||||||
|
'Linux-x86_64': ('66c822dfe76636b4cc2ae5604816e0e723aa01620f50087f06410ecf5bfdf38c', 'https://repo.continuum.io/miniconda/Miniconda3-4.3.30-Linux-x86_64.sh')},
|
||||||
|
'4.3.14': {
|
||||||
|
'Linux-x86_64': ('902f31a46b4a05477a9862485be5f84af761a444f8813345ff8dad8f6d3bccb2', 'https://repo.continuum.io/miniconda/Miniconda3-4.3.14-Linux-x86_64.sh')},
|
||||||
|
'4.3.11': {
|
||||||
|
'Linux-x86_64': ('b9fe70ce7b6fa8df05abfb56995959b897d0365299f5046063bc236843474fb8', 'https://repo.continuum.io/miniconda/Miniconda3-4.3.11-Linux-x86_64.sh')},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class Miniconda3(Package):
|
class Miniconda3(Package):
|
||||||
"""The minimalist bootstrap toolset for conda and Python3."""
|
"""The minimalist bootstrap toolset for conda and Python3."""
|
||||||
|
|
||||||
homepage = "https://conda.io/miniconda.html"
|
homepage = "https://conda.io/miniconda.html"
|
||||||
url = "https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh"
|
|
||||||
|
|
||||||
version('4.9.2', sha256='1314b90489f154602fd794accfc90446111514a5a72fe1f71ab83e07de9504a7', url='https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh', expand=False)
|
for ver, packages in _versions.items():
|
||||||
version('4.8.2', sha256='5bbb193fd201ebe25f4aeb3c58ba83feced6a25982ef4afa86d5506c3656c142', url='https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh', expand=False)
|
key = "{0}-{1}".format(platform.system(), platform.machine())
|
||||||
version('4.7.12.1', sha256='bfe34e1fa28d6d75a7ad05fd02fa5472275673d5f5621b77380898dee1be15d2', expand=False)
|
pkg = packages.get(key)
|
||||||
version('4.6.14', sha256='0d6b23895a91294a4924bd685a3a1f48e35a17970a073cd2f684ffe2c31fc4be', expand=False)
|
if pkg:
|
||||||
version('4.5.11', sha256='ea4594241e13a2671c5b158b3b813f0794fe58d514795fbf72a1aad24db918cf', expand=False)
|
version(ver, sha256=pkg[0], url=pkg[1], expand=False)
|
||||||
version('4.5.4', sha256='80ecc86f8c2f131c5170e43df489514f80e3971dd105c075935470bbf2476dea', expand=False)
|
|
||||||
version('4.3.30', sha256='66c822dfe76636b4cc2ae5604816e0e723aa01620f50087f06410ecf5bfdf38c', expand=False)
|
|
||||||
version('4.3.14', sha256='902f31a46b4a05477a9862485be5f84af761a444f8813345ff8dad8f6d3bccb2', expand=False)
|
|
||||||
version('4.3.11', sha256='b9fe70ce7b6fa8df05abfb56995959b897d0365299f5046063bc236843474fb8', expand=False)
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
# peel the name of the script out of the pathname of the
|
# peel the name of the script out of the pathname of the
|
||||||
|
|
Loading…
Reference in a new issue