mathematica : added v12.1.1 (#19842)
This commit is contained in:
parent
6be5289e56
commit
ecc5ef3e7b
@ -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 @@ def install(self, spec, prefix):
|
||||
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'))
|
||||
|
Loading…
Reference in New Issue
Block a user