Improve Mathematica easyblock to support license server configuration and version-specific executable names#3991
Improve Mathematica easyblock to support license server configuration and version-specific executable names#3991planetmija wants to merge 6 commits intoeasybuilders:developfrom
Conversation
…figuration and version-specific executable names
|
I checked the older versions on another cluster and obtained the following results. My cluster v14.2.1: v14.0 on other cluster: v12.1.1: |
|
Test report by @Micket Overview of tested easyconfigs (in order)
Build succeeded for 0 out of 1 (1 easyconfigs in total) |
|
hrm.. how annoying, my university is only providing m with the iso file for sources, and the layout and everything is different. |
|
sorry i forgot about old #3707 |
Micket
left a comment
There was a problem hiding this comment.
lgtm, i managed to do the merge from the github ui
|
@sassy-crick you have mathematica? My source for install material only has the iso files so I can't test this easyblock. EB_MATHEMATICA_LICENSE_SERVER=math.lic.somewhere.com
eb --upload-test-report --include-easyblock-from-pr 3991 --rebuild --prefix /tmp Mathematica-14.2.0.eb should work with license server. |
|
@Micket i've installed before v14.2.1 fine from easybuilders/easybuild-easyconfigs#22823 using #3707 eblock as it's now with i've tried test report using this eblock, without our hook and passing the var for license as: and it failed it seems passing via the env var is not working |
|
mm, i'm getting the same error with the combination that worked before, using #3707 and the hook |
|
Unfortunately this merge breaks it for me as well. My file is still called 'Mathematica_14.2.1_LINUX.sh'. Was there a name change? |
|
Actually both is wrong: You should change it to: I could push the change if you want. |
… for Mathematica 14.1+
|
There was also a typo caused by the merge, which I have now corrected. You could try this: Edit: Info removed, see comment below. |
|
Edit: Log not uploaded first time. OK, I can confirm that these versions work with v14.2.1 ( |
actually it seems that is a matter of downloading the file with the documentation included or not.
if I choose Direct File Download for "Wolfram + Documentation" I get the either for 14.3.0, 14.2.1 or 14.1.0 as they show on the guide. if I choose instead Direct File Download for "Wolfram (Web Documentation Only)" I get the I don't know if we should prefer the latter as the download is smaller ? what a mess anyway, could you check on your side if you download now you get also the file with the |
|
Lets just use the sources[0] instead? That should be the script to run, no matter the version, bundle or not. |
If it is that easy, then yes! What's really annoying is that the documentation says Wolfram_%s_BNDL_LIN.sh, but it can be Wolfram_%s_LIN_Bndl.sh or Wolfram_%s_LIN.sh, as well. I get the software directly from the university and the file was called 'Mathematica_14.2.1_LINUX.sh'. So, I have no idea which version it is and will probably have the wrong checksum. |
| if LooseVersion(self.version) >= LooseVersion("13"): | ||
| install_script_glob = '%s_%s_*LINUX*.sh' % (self.name, self.version) | ||
| if LooseVersion(self.version) >= LooseVersion("14.1"): | ||
| install_script_glob = 'Wolfram_%s_LIN.sh' % (self.version) | ||
| install_script_glob = 'Wolfram_%s_BNDL_LIN.sh' % (self.version) | ||
|
|
||
| matches = glob.glob(install_script_glob) | ||
| if len(matches) == 1: |
There was a problem hiding this comment.
I suggest doing something like
install_script = self.cfg["install_script"] or self.src[0]
i.e. default to the first source, unless someone manually specifies a different install_script (need to add extra_vars "install_script" parameter that's None by default)
Then drop this entire glob and conditional statement.
There was a problem hiding this comment.
Can you do that, or should I update the PR?
…asyconfig sources
|
Seams to work: easybuild-Mathematica-14.2.1-20251124.195731.log |
The installation works but then I got that problem: Nothing to do with the EasyBlock though but I thought I mention it here. |
|
So there is nothing else to do here? |

...figuration and version-specific executable names
The executable names have changed for Mathematica 14. I asked Claude Sonnet 4.5 to modify the script using the installer output below. I also added an option to specify the licence file via the environment variable
EB_MATHEMATICA_LICENSE_SERVER.It's 100% AI, but it works and looks OK to me. Feel free to make changes.