Skip to content

Commit

Permalink
support >= 2024a for MCR
Browse files Browse the repository at this point in the history
  • Loading branch information
branfosj authored Jun 19, 2024
1 parent d1f2231 commit 53c13ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion easybuild/easyblocks/m/mcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,17 @@ def configure_step(self):
config = regdest.sub("destinationFolder=%s" % self.installdir, config)
config = regagree.sub("agreeToLicense=Yes", config)
config = regmode.sub("mode=silent", config)
else:
elif LooseVersion(self.version) < LooseVersion('R2024a'):
config = '\n'.join([
"destinationFolder=%s" % self.installdir,
"agreeToLicense=Yes",
"mode=silent",
])
else:
config = '\n'.join([
"destinationFolder=%s" % self.installdir,
"agreeToLicense=yes",
])

write_file(configfile, config)

Expand Down

0 comments on commit 53c13ea

Please sign in to comment.