Create MCR using command line using requiredMCRProducts.txt
显示 更早的评论
When I create a python package (Library compiler) using the MATLAB GUI, if I mark the the box "Runtime included in the package" then MyAppInstaller_mcr.install is created which contains just the products required for the package to execute. I think this information is taken from "requiredMCRProducts.txt".
This means the MCR is relatively small (at least compared to the complete MCR which is what the option "Runtime downloaded from web" would create).
Does this functionality to create a small MCR exist using only the command line functions?
I can create the python package fine using:
results = compiler.build.pythonPackage('magicsquare.m');
But then to create the compiler I can't see how to make the smaller MCR containing just the required products.
This command creates a web installer which will download the complete MCR:
compiler.package.installer(results, 'RuntimeDelivery', 'web');
And this command just adds the complete MCR (which had been previously downloaded) with the rest of the python package
compiler.package.installer(results, 'RuntimeDelivery', 'installer');
Thanks for any help offered,
Ben
(MATLAB version R2022a Linux)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Python Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!