summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mathematica/package.py9
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'))