Skip to content

Commit 4292af4

Browse files
Merge pull request #6 from mathworks/R2021b
support for R2021b
2 parents 52b15c5 + fd92e95 commit 4292af4

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
66
## Requirements
77
### Required MathWorks Products
88
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
9-
* MATLAB release R2021a
9+
* MATLAB release R2021b
1010

1111
### Required 3rd Party Products
1212
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
13-
* Python 3.7 or 3.8
13+
* Python 3.7, 3.8, or 3.9
1414
* Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/python-compatibility.pdf).
1515

1616
---
@@ -21,15 +21,15 @@ The MATLAB&reg; Engine API for Python&reg; 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.10
24+
$ python -m pip install matlabengine==9.11
2525
```
2626

2727

2828

2929
### Linux&reg;
3030
Prior to installation, check the default install location of MATLAB by calling ```matlabroot``` in a MATLAB Command Window. By default, Linux installs MATLAB at:<br>
3131
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
32-
```/usr/local/MATLAB/R2021a```
32+
```/usr/local/MATLAB/R2021b```
3333

3434
When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to an environment variable. The path can be added to the environment variable within the shell startup configuration file (for example, .bashrc for bash shell or .tcshrc for tcsh).
3535

@@ -46,14 +46,14 @@ 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.10
49+
$ python -m pip install matlabengine==9.11
5050
```
5151

5252
### macOS
5353
Prior to installation, check the default install location of MATLAB by calling ```matlabroot``` in a MATLAB Command Window. By default, macOS installs MATLAB at:<br>
5454

5555
<!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
56-
```/Applications/MATLAB_R2021a.app```
56+
```/Applications/MATLAB_R2021b.app```
5757

5858
When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to an environment variable. The path can be added to the environment variable within the shell startup configuration file (for example, .bashrc for bash shell or .tcshrc for tcsh).
5959

@@ -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.10
73+
$ python -m pip install matlabengine==9.11
7474
```
7575

7676
---

setup.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ class _MatlabFinder(build_py):
2020
}
2121

2222
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
23-
MATLAB_REL = 'R2021a'
23+
MATLAB_REL = 'R2021b'
2424

2525
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
26-
MATLAB_VER = '9.10'
26+
MATLAB_VER = '9.11'
2727

2828
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
29-
SUPPORTED_PYTHON_VERSIONS = set(['3.7', '3.8'])
29+
SUPPORTED_PYTHON_VERSIONS = set(['3.7', '3.8', '3.9'])
3030

3131
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
3232
VER_TO_REL = {
@@ -280,7 +280,7 @@ def run(self):
280280
setup(
281281
name="matlabengine",
282282
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
283-
version="9.10",
283+
version="9.11",
284284
description='A module to call MATLAB from Python',
285285
author='MathWorks',
286286
license="MathWorks XLSA License",
@@ -306,8 +306,9 @@ def run(self):
306306
"Intended Audience :: Developers",
307307
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
308308
"Programming Language :: Python :: 3.7",
309-
"Programming Language :: Python :: 3.8"
309+
"Programming Language :: Python :: 3.8",
310+
"Programming Language :: Python :: 3.9"
310311
],
311312
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
312-
python_requires=">=3.7, <3.9"
313+
python_requires=">=3.7, <3.10"
313314
)

src/matlab/engine/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def add_dirs_to_path(bin_dir, engine_dir, extern_dir):
5555
sys.path.insert(0, extern_dir)
5656

5757
# MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
58-
_supported_versions = set(['3_7', '3_8'])
58+
_supported_versions = set(['3_7', '3_8', '3_9'])
5959
_ver = sys.version_info
6060
_version = '{0}_{1}'.format(_ver[0], _ver[1])
6161
if _version not in _supported_versions:

0 commit comments

Comments
 (0)