@@ -24,7 +24,7 @@ class _MatlabFinder(build_py):
24
24
MATLAB_REL = 'R2021b'
25
25
26
26
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27
- MATLAB_VER = '9.11.19a1 '
27
+ MATLAB_VER = '9.11.19a2 '
28
28
29
29
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
30
30
SUPPORTED_PYTHON_VERSIONS = set (['3.7' , '3.8' , '3.9' ])
@@ -50,7 +50,7 @@ class _MatlabFinder(build_py):
50
50
51
51
# ERROR MESSAGES
52
52
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."
54
54
dir_not_found = "Directory not found: "
55
55
install_compatible = "To install a compatible version, call python -m pip install matlabengine=="
56
56
no_windows_install = "MATLAB installation not found in Windows Registry:"
@@ -256,7 +256,12 @@ def search_path_for_directory_unix(self):
256
256
# We found a MATLAB release but it is older than the oldest version we support,
257
257
# or newer than the newest version we support.
258
258
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 ))
260
265
else :
261
266
raise RuntimeError (self .set_path .format (path1 = self .path_name , arch = self .arch , path2 = self .path_name ))
262
267
@@ -303,7 +308,7 @@ def run(self):
303
308
setup (
304
309
name = "matlabengine" ,
305
310
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
306
- version = "9.11.19a1 " ,
311
+ version = "9.11.19a2 " ,
307
312
description = 'A module to call MATLAB from Python' ,
308
313
author = 'MathWorks' ,
309
314
license = "MathWorks XSLA License" ,
0 commit comments