@@ -24,7 +24,7 @@ class _MatlabFinder(build_py):
2424 MATLAB_REL = 'R2021b'
2525
2626 # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27- MATLAB_VER = '9.11.19a1 '
27+ MATLAB_VER = '9.11.19a2 '
2828
2929 # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3030 SUPPORTED_PYTHON_VERSIONS = set (['3.7' , '3.8' , '3.9' ])
@@ -50,7 +50,7 @@ class _MatlabFinder(build_py):
5050
5151 # ERROR MESSAGES
5252 minimum_maximum = "No compatible version of MATLAB was found. " + \
53- "This feature supports MATLAB {minimum :s} through {maximum :s}, inclusive."
53+ "This feature supports MATLAB {min_v :s} ({min_r:s}) through {max_v :s} ({max_r:s}) , inclusive."
5454 dir_not_found = "Directory not found: "
5555 install_compatible = "To install a compatible version, call python -m pip install matlabengine=="
5656 no_windows_install = "MATLAB installation not found in Windows Registry:"
@@ -256,7 +256,12 @@ def search_path_for_directory_unix(self):
256256 # We found a MATLAB release but it is older than the oldest version we support,
257257 # or newer than the newest version we support.
258258 else :
259- raise RuntimeError (self .minimum_maximum .format (minimum = self .VER_TO_REL [0 ], maximum = self .VER_TO_REL [- 1 ]))
259+ v_to_r_keys = list (self .VER_TO_REL .keys ())
260+ min_v = v_to_r_keys [0 ]
261+ min_r = self .VER_TO_REL [min_v ]
262+ max_v = v_to_r_keys [- 1 ]
263+ max_r = self .VER_TO_REL [max_v ]
264+ raise RuntimeError (self .minimum_maximum .format (min_v = min_v , min_r = min_r , max_v = max_v , max_r = max_r ))
260265 else :
261266 raise RuntimeError (self .set_path .format (path1 = self .path_name , arch = self .arch , path2 = self .path_name ))
262267
@@ -303,7 +308,7 @@ def run(self):
303308 setup (
304309 name = "matlabengine" ,
305310 # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
306- version = "9.11.19a1 " ,
311+ version = "9.11.19a2 " ,
307312 description = 'A module to call MATLAB from Python' ,
308313 author = 'MathWorks' ,
309314 license = "MathWorks XSLA License" ,
0 commit comments