MATLAB® Compiler SDK™ cannot compile MATLAB code that uses the MATLAB Python® interface.
You can compile Python packages from both the MATLAB command line and the system terminal command line:
deploytool command has two flags to
invoke one of the compiler apps without opening a window.
Invoke the correct compiler app to build the project and not generate
Invoke the correct compiler app to build the project and generate
deploytool -package magicsquare generates
the binary files defined by the
and packages them into an installer that you can distribute to others.
invokes the compiler and provides fine-level control over the compilation
of the Python package. It, however, cannot package the results
in an installer.
To invoke the compiler to generate a Python package use
-W python: flag
mcc. This flag
creates a Python package named
methods for each of the provided MATLAB functions.
For compiling Python packages, you can also use the following options.
Compiler Python Options
|Add any files on the path to the generated binary.|
|Specify the folder into which the results of compilation are written.|