Replies: 1 comment 2 replies
-
@johmedr I have started a tentative matlab runtime installer package (only tested on mac so far, and not with all versions). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This thread aims to discuss ways of packaging the matlab runtime and the spm CTF in ways that
This follows from this discussion.
Related issue: #18
Solution 1: matlab runtime as a pip package
The nicest thing from an spm-python point of view would be to have the matlab runtime be fully shipped by pip, which would allow users to do
and spm-python could find the runtime through something like
However, matlab is definitely not publishing something like this, and we are not licensed to build and distribute such a package (I think).
Solution 2: matlab installer as a pip package
Another solution is to build and publish a runtime installer. One would do
which would have thr entrypoint
This installer would need to either:
$HOME/.matlab/runtime/<version>
), orIf no matlab-runtime is installed at python runtime, we should open an interactive context that lets the user effectively run
matlab_runtime_installer
.Note: we cannot install the runtime inside the
matlab-runtime-installer
package, as it can be a zipped package, and it is anyway bad practice.Questions:
matlab-runtime-installer
package be versioned per-matlab (i.e.pip install matlab-runtime-installer=r2024b
means thatmatlab_runtime_installer
can only installr2024b
and the--version
flag does not exist)? Or should any version ofmatlab-runtime-installer
be able to install any version of the matlab runtime?spm-runtime[r2024b]
specify that it needs r2024b in its dependencies?Solution 3: keep things as they are
I.e., ask people to install the runtime themselves, and make sure they have the correct version.
Any other idea? Details I missed?
@johmedr
Beta Was this translation helpful? Give feedback.
All reactions