diff options
author | Antonio Arena <antonio.arena@kaust.edu.sa> | 2020-11-14 11:47:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 09:47:13 +0100 |
commit | ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e (patch) | |
tree | 3d1d6b0d6f056bbebf9793fa771f071f4379a02a /var | |
parent | 6be5289e56f344a80bc00d5c84dd135a015b93c8 (diff) | |
download | spack-ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e.tar.gz spack-ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e.tar.bz2 spack-ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e.tar.xz spack-ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e.zip |
mathematica : added v12.1.1 (#19842)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/mathematica/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mathematica/package.py b/var/spack/repos/builtin/packages/mathematica/package.py index 8ef546200f..c775fc8b0d 100644 --- a/var/spack/repos/builtin/packages/mathematica/package.py +++ b/var/spack/repos/builtin/packages/mathematica/package.py @@ -20,6 +20,9 @@ class Mathematica(Package): homepage = "https://www.wolfram.com/mathematica/" url = 'file://{0}/Mathematica_12.0.0_LINUX.sh'.format(os.getcwd()) + version('12.1.1', + sha256='ad47b886be4a9864d70f523f792615a051d4ebc987d9a0f654b645b4eb43b30a', + expand=False) version('12.0.0', sha256='b9fb71e1afcc1d72c200196ffa434512d208fa2920e207878433f504e58ae9d7', expand=False) @@ -32,7 +35,8 @@ class Mathematica(Package): def install(self, spec, prefix): # Backup .spack because Mathematica moves it but never restores it - copy_tree(join_path(prefix, '.spack'), self.stage) + copy_tree(join_path(prefix, '.spack'), + join_path(self.stage.path, '.spack')) sh = which('sh') sh(self.stage.archive_file, '--', '-auto', '-verbose', @@ -48,4 +52,5 @@ class Mathematica(Package): ln('-s', ws_path, ws_link_path) # Move back .spack where it belongs - copy_tree(join_path(self.stage, '.spack'), prefix) + copy_tree(join_path(self.stage.path, '.spack'), + join_path(prefix, '.spack')) |