From ecc5ef3e7bd2e2213d5bb4e7ee3ff5955e4bd70e Mon Sep 17 00:00:00 2001 From: Antonio Arena Date: Sat, 14 Nov 2020 11:47:13 +0300 Subject: mathematica : added v12.1.1 (#19842) --- var/spack/repos/builtin/packages/mathematica/package.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'var') 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')) -- cgit v1.2.3-60-g2f50