Skip to content

Commit

Permalink
Create matlab-runtime
Browse files Browse the repository at this point in the history
Allow multiple versions of the Matlab Runtime

For now, keep the package non-relocatable. The `patchelf` tool fails
with obscure error messages on MATLAB Runtime binaries.

While developing, we retrieve from local disk because retrieving the
binary from MathWorks usign HTTPS is damn slow and NFS breaks rattler-builder:
prefix-dev/rattler-build#1045 (comment)
  • Loading branch information
DimitriPapadopoulos committed Oct 29, 2024
1 parent c81f11e commit 4118e6b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/matlab-runtime-9.7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Create the matlab-runtime package

Find more information in the [MATLAB Runtime](https://mathworks.com/help/compiler/matlab-runtime.html) MathWorks documentation.

The binaries are available starting from the [Download and Install MATLAB Runtime](https://mathworks.com/help/compiler/install-the-matlab-runtime.html) page.

We chose the official MATLAB Runtime Version numbers listed in the [MATLAB Runtime](https://mathworks.com/products/compiler/matlab-runtime.html) download page, typically 9.7. Alternatives include v97 or R2019b. None of these versioning schemes account for updates (R2019b Update 9). Sigh.
27 changes: 27 additions & 0 deletions recipes/matlab-runtime-9.7/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package:
name: matlab-runtime-9.7
version: 9

source:
#~ url: https://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/9/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_9_glnxa64.zip
#~ path: /drf/neuro-forge/pool/matlab-runtime/MATLAB_Runtime_R2019b_Update_9_glnxa64.zip
path: /tmp/MATLAB_Runtime_R2019b_Update_9_glnxa64.zip
sha256: d213e2960a20332f121ec4addf81469b2a2aab2ad8b4ed4226875da6e8af7c65

build:
number: 0
script:
- ./install -mode silent -agreeToLicense yes -outputFile install_log.txt -destinationFolder $PREFIX/MATLAB/MATLAB_Runtime
dynamic_linking:
binary_relocation: false

about:
homepage: https://mathworks.com/help/compiler/install-the-matlab-runtime.html
license_file: MCR_license.txt
summary: |
Run packaged MATLAB applications on computers without MATLAB
description: |
MATLAB Runtime (MCR) is a freely-available set of shared libraries,
MATLAB code, and other files that enables the execution of MATLAB files
on computers without an installed version of MATLAB.
documentation: https://mathworks.com/help/compiler/matlab-runtime.html

0 comments on commit 4118e6b

Please sign in to comment.