Skip to content

Commit 0d4171f

Browse files
committed
fixed minimum/maximum error message; changed version number to 9.11.19a2
1 parent 7e21da3 commit 0d4171f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
2121
MATLAB Engine API for Python can be installed directly from the Python Package Index.
2222
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
2323
```bash
24-
$ python -m pip install matlabengine==9.11.19a1
24+
$ python -m pip install matlabengine==9.11.19a2
2525
```
2626

2727

@@ -46,7 +46,7 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:matlabroot/bin/glnxa64
4646
MATLAB Engine API for Python can be installed directly from the Python Package Index.
4747
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
4848
```bash
49-
$ python -m pip install matlabengine==9.11.19a1
49+
$ python -m pip install matlabengine==9.11.19a2
5050
```
5151

5252
### macOS
@@ -70,7 +70,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:matlabroot/bin/maci64
7070
MATLAB Engine API for Python can be installed directly from the Python Package Index.
7171
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
7272
```bash
73-
$ python -m pip install matlabengine==9.11.19a1
73+
$ python -m pip install matlabengine==9.11.19a2
7474
```
7575

7676
---

setup.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)