Skip to content

Commit 2532c1a

Browse files
committed
R2022b 9.13.1a2 better error message
1 parent 83d8d5e commit 2532c1a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
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.13.1a1
24+
$ python -m pip install matlabengine==9.13.1a2
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.13.1a1
49+
$ python -m pip install matlabengine==9.13.1a2
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.13.1a1
73+
$ python -m pip install matlabengine==9.13.1a2
7474
```
7575

7676
---

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _MatlabFinder(build_py):
2424
MATLAB_REL = 'R2022b'
2525

2626
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27-
MATLAB_VER = '9.13.1a1'
27+
MATLAB_VER = '9.13.1a2'
2828

2929
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3030
SUPPORTED_PYTHON_VERSIONS = set(['3.8', '3.9', '3.10'])
@@ -53,7 +53,6 @@ class _MatlabFinder(build_py):
5353
minimum_maximum = "No compatible version of MATLAB was found. " + \
5454
"This feature supports MATLAB {min_v:s} ({min_r:s}) through {max_v:s} ({max_r:s}), inclusive."
5555
dir_not_found = "Directory not found: "
56-
install_compatible = "To install a compatible version, call python -m pip install matlabengine=="
5756
no_windows_install = "MATLAB installation not found in Windows Registry:"
5857
unsupported_platform = "{platform:s} is not a supported platform."
5958
unsupported_python = "{python:s} is not supported. The supported Python versions are {supported:s}."
@@ -184,7 +183,7 @@ def _find_matlab_key_from_windows_registry(self, key):
184183
vers = ', '.join(found_vers)
185184
eng_ver_major_minor = self._get_engine_ver_major_minor()
186185
eng_ver_major_minor_as_str = '{}.{}'.format(eng_ver_major_minor[0], eng_ver_major_minor[1])
187-
raise RuntimeError(f"{self.no_compatible_matlab.format(ver=eng_ver_major_minor_as_str)} {vers}. {self.install_compatible}{found_vers[-1]}.")
186+
raise RuntimeError(f"{self.no_compatible_matlab.format(ver=eng_ver_major_minor_as_str)} {vers}.")
188187
else:
189188
raise RuntimeError(f"{self.no_matlab}")
190189

@@ -310,7 +309,7 @@ def run(self):
310309
setup(
311310
name="matlabengine",
312311
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
313-
version="9.13.1a1",
312+
version="9.13.1a2",
314313
description='A module to call MATLAB from Python',
315314
author='MathWorks',
316315
license="MathWorks XSLA License",

0 commit comments

Comments
 (0)