matlabengine 24.1.4__tar.gz → 24.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {matlabengine-24.1.4 → matlabengine-24.2.2}/PKG-INFO +10 -9
  2. {matlabengine-24.1.4 → matlabengine-24.2.2}/README.md +7 -7
  3. {matlabengine-24.1.4 → matlabengine-24.2.2}/setup.py +9 -7
  4. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/__init__.py +2 -2
  5. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/__init__.py +15 -3
  6. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/enginehelper.py +1 -1
  7. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlabengine.egg-info/PKG-INFO +10 -9
  8. {matlabengine-24.1.4 → matlabengine-24.2.2}/LICENSE.txt +0 -0
  9. {matlabengine-24.1.4 → matlabengine-24.2.2}/pyproject.toml +0 -0
  10. {matlabengine-24.1.4 → matlabengine-24.2.2}/setup.cfg +0 -0
  11. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/_arch.txt +0 -0
  12. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/basefuture.py +0 -0
  13. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/engineerror.py +0 -0
  14. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/enginesession.py +0 -0
  15. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/fevalfuture.py +0 -0
  16. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/futureresult.py +0 -0
  17. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/matlabengine.py +0 -0
  18. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlab/engine/matlabfuture.py +0 -0
  19. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlabengine.egg-info/SOURCES.txt +0 -0
  20. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlabengine.egg-info/dependency_links.txt +0 -0
  21. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlabengine.egg-info/not-zip-safe +0 -0
  22. {matlabengine-24.1.4 → matlabengine-24.2.2}/src/matlabengine.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: matlabengine
3
- Version: 24.1.4
3
+ Version: 24.2.2
4
4
  Summary: A module to call MATLAB from Python
5
5
  Home-page: https://github.com/mathworks/matlab-engine-for-python/
6
6
  Author: MathWorks
@@ -15,7 +15,8 @@ Classifier: Intended Audience :: Developers
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
- Requires-Python: >=3.9, <3.12
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Requires-Python: >=3.9, <3.13
19
20
  Description-Content-Type: text/markdown
20
21
  License-File: LICENSE.txt
21
22
 
@@ -27,11 +28,11 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
27
28
  ## Requirements
28
29
  ### Required MathWorks Products
29
30
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
30
- * MATLAB release R2024a
31
+ * MATLAB release R2024b
31
32
 
32
33
  ### Required 3rd Party Products
33
34
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
34
- * Python 3.9, 3.10, or 3.11
35
+ * Python 3.9, 3.10, 3.11, or 3.12
35
36
  * Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/support/requirements/python-compatibility.html).
36
37
 
37
38
  ---
@@ -42,7 +43,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
42
43
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
43
44
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
44
45
  ```bash
45
- $ python -m pip install matlabengine==24.1.4
46
+ $ python -m pip install matlabengine==24.2
46
47
  ```
47
48
 
48
49
 
@@ -50,7 +51,7 @@ $ python -m pip install matlabengine==24.1.4
50
51
  ### Linux&reg;
51
52
  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>
52
53
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
53
- ```/usr/local/MATLAB/R2024a```
54
+ ```/usr/local/MATLAB/R2024b```
54
55
 
55
56
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable LD_LIBRARY_PATH. 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).
56
57
 
@@ -67,14 +68,14 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
67
68
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
68
69
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
69
70
  ```bash
70
- $ python -m pip install matlabengine==24.1.4
71
+ $ python -m pip install matlabengine==24.2
71
72
  ```
72
73
 
73
74
  ### macOS
74
75
  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>
75
76
 
76
77
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
77
- ```/Applications/MATLAB_R2024a.app```
78
+ ```/Applications/MATLAB_R2024b.app```
78
79
 
79
80
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable DYLD_LIBRARY_PATH. 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).
80
81
 
@@ -91,7 +92,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
91
92
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
92
93
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
93
94
  ```bash
94
- $ python -m pip install matlabengine==24.1.4
95
+ $ python -m pip install matlabengine==24.2
95
96
  ```
96
97
 
97
98
  ---
@@ -6,11 +6,11 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
6
6
  ## Requirements
7
7
  ### Required MathWorks Products
8
8
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
9
- * MATLAB release R2024a
9
+ * MATLAB release R2024b
10
10
 
11
11
  ### Required 3rd Party Products
12
12
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
13
- * Python 3.9, 3.10, or 3.11
13
+ * Python 3.9, 3.10, 3.11, or 3.12
14
14
  * Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/support/requirements/python-compatibility.html).
15
15
 
16
16
  ---
@@ -21,7 +21,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
21
21
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
22
22
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
23
23
  ```bash
24
- $ python -m pip install matlabengine==24.1.4
24
+ $ python -m pip install matlabengine==24.2
25
25
  ```
26
26
 
27
27
 
@@ -29,7 +29,7 @@ $ python -m pip install matlabengine==24.1.4
29
29
  ### Linux&reg;
30
30
  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>
31
31
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
32
- ```/usr/local/MATLAB/R2024a```
32
+ ```/usr/local/MATLAB/R2024b```
33
33
 
34
34
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable LD_LIBRARY_PATH. 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).
35
35
 
@@ -46,14 +46,14 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
46
46
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
47
47
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
48
48
  ```bash
49
- $ python -m pip install matlabengine==24.1.4
49
+ $ python -m pip install matlabengine==24.2
50
50
  ```
51
51
 
52
52
  ### macOS
53
53
  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>
54
54
 
55
55
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
56
- ```/Applications/MATLAB_R2024a.app```
56
+ ```/Applications/MATLAB_R2024b.app```
57
57
 
58
58
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable DYLD_LIBRARY_PATH. 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).
59
59
 
@@ -70,7 +70,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
70
70
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
71
71
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
72
72
  ```bash
73
- $ python -m pip install matlabengine==24.1.4
73
+ $ python -m pip install matlabengine==24.2
74
74
  ```
75
75
 
76
76
  ---
@@ -21,13 +21,13 @@ class _MatlabFinder(build_py):
21
21
  }
22
22
 
23
23
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
24
- MATLAB_REL = 'R2024a'
24
+ MATLAB_REL = 'R2024b'
25
25
 
26
26
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27
- MATLAB_VER = '24.1.4'
27
+ MATLAB_VER = '24.2.2'
28
28
 
29
29
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
30
- SUPPORTED_PYTHON_VERSIONS = set(['3.9', '3.10', '3.11'])
30
+ SUPPORTED_PYTHON_VERSIONS = set(['3.9', '3.10', '3.11', '3.12'])
31
31
 
32
32
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
33
33
  VER_TO_REL = {
@@ -38,7 +38,8 @@ class _MatlabFinder(build_py):
38
38
  "9.13": "R2022b",
39
39
  "9.14": "R2023a",
40
40
  "23.2": "R2023b",
41
- "24.1": "R2024a"
41
+ "24.1": "R2024a",
42
+ "24.2": "R2024b"
42
43
  }
43
44
 
44
45
  DEFAULT_INSTALLS = {
@@ -416,7 +417,7 @@ if __name__ == '__main__':
416
417
  setup(
417
418
  name="matlabengine",
418
419
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
419
- version="24.1.4",
420
+ version="24.2.2",
420
421
  description='A module to call MATLAB from Python',
421
422
  author='MathWorks',
422
423
  license="LICENSE.txt, located in this repository",
@@ -443,8 +444,9 @@ if __name__ == '__main__':
443
444
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
444
445
  "Programming Language :: Python :: 3.9",
445
446
  "Programming Language :: Python :: 3.10",
446
- "Programming Language :: Python :: 3.11"
447
+ "Programming Language :: Python :: 3.11",
448
+ "Programming Language :: Python :: 3.12"
447
449
  ],
448
450
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
449
- python_requires=">=3.9, <3.12"
451
+ python_requires=">=3.9, <3.13"
450
452
  )
@@ -1,4 +1,4 @@
1
- # Copyright 2022 MathWorks, Inc.
1
+ # Copyright 2024 MathWorks, Inc.
2
2
 
3
3
  import os
4
4
  import platform
@@ -37,7 +37,7 @@ def add_dirs_to_path(bin_dir, engine_dir, extern_dir):
37
37
 
38
38
  arch_file = os.path.join(package_folder, 'engine', '_arch.txt')
39
39
  if not os.path.isfile(arch_file):
40
- raise RuntimeError("The MATLAB Engine for Python install is corrupted, please try to re-install.")
40
+ raise RuntimeError("The MATLAB Engine for Python install is corrupted. Please try to re-install.")
41
41
 
42
42
  with open(arch_file, 'r') as root:
43
43
  [arch, bin_folder, engine_folder, extern_bin] = [line.strip() for line in root.readlines()]
@@ -1,4 +1,4 @@
1
- #Copyright 2014-2023 MathWorks, Inc.
1
+ #Copyright 2014-2024 MathWorks, Inc.
2
2
 
3
3
  """
4
4
  The MATLAB Engine enables you to call any MATLAB statement either synchronously
@@ -25,18 +25,30 @@ import importlib
25
25
  import atexit
26
26
  import weakref
27
27
  import threading
28
+ import warnings
28
29
 
29
30
  # UPDATE_IF_PYTHON_VERSION_ADDED_OR_REMOVED : search for this string in codebase
30
31
  # when support for a Python version must be added or removed
31
- _supported_versions = ['3_9', '3_10', '3_11']
32
+
33
+ _supported_versions = ['3_9', '3_10', '3_11', '3_12']
32
34
  _ver = sys.version_info
33
35
  _version = '{0}_{1}'.format(_ver[0], _ver[1])
36
+ _newer_than_supported = _ver[1] > 12
37
+
34
38
  _PYTHONVERSION = None
35
39
 
36
40
  if _version in _supported_versions:
37
41
  _PYTHONVERSION = _version
42
+ elif _newer_than_supported:
43
+ warnings.warn('MATLAB Engine for Python supports Python version'
44
+ ' 3.9, 3.10, 3.11, and 3.12, but your version of Python '
45
+ 'is %s' % _version)
46
+ _PYTHONVERSION = _version
38
47
  else:
39
- raise EnvironmentError("Python %s is not supported." % _version)
48
+ raise EnvironmentError('MATLAB Engine for Python supports Python version'
49
+ ' 3.9, 3.10, 3.11, and 3.12, but your version of Python '
50
+ 'is %s' % _version)
51
+
40
52
 
41
53
  _module_folder = os.path.dirname(os.path.realpath(__file__))
42
54
  _arch_filename = os.path.join(_module_folder, "_arch.txt")
@@ -1,4 +1,4 @@
1
- #Copyright 2017-2020 MathWorks, Inc.
1
+ #Copyright 2017-2022 MathWorks, Inc.
2
2
  import warnings
3
3
  from matlab.engine import pythonengine
4
4
  import sys
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: matlabengine
3
- Version: 24.1.4
3
+ Version: 24.2.2
4
4
  Summary: A module to call MATLAB from Python
5
5
  Home-page: https://github.com/mathworks/matlab-engine-for-python/
6
6
  Author: MathWorks
@@ -15,7 +15,8 @@ Classifier: Intended Audience :: Developers
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
- Requires-Python: >=3.9, <3.12
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Requires-Python: >=3.9, <3.13
19
20
  Description-Content-Type: text/markdown
20
21
  License-File: LICENSE.txt
21
22
 
@@ -27,11 +28,11 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
27
28
  ## Requirements
28
29
  ### Required MathWorks Products
29
30
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
30
- * MATLAB release R2024a
31
+ * MATLAB release R2024b
31
32
 
32
33
  ### Required 3rd Party Products
33
34
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
34
- * Python 3.9, 3.10, or 3.11
35
+ * Python 3.9, 3.10, 3.11, or 3.12
35
36
  * Supported Python versions by MATLAB release can be found [here](https://www.mathworks.com/support/requirements/python-compatibility.html).
36
37
 
37
38
  ---
@@ -42,7 +43,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
42
43
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
43
44
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
44
45
  ```bash
45
- $ python -m pip install matlabengine==24.1.4
46
+ $ python -m pip install matlabengine==24.2
46
47
  ```
47
48
 
48
49
 
@@ -50,7 +51,7 @@ $ python -m pip install matlabengine==24.1.4
50
51
  ### Linux&reg;
51
52
  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>
52
53
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
53
- ```/usr/local/MATLAB/R2024a```
54
+ ```/usr/local/MATLAB/R2024b```
54
55
 
55
56
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable LD_LIBRARY_PATH. 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).
56
57
 
@@ -67,14 +68,14 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
67
68
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
68
69
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
69
70
  ```bash
70
- $ python -m pip install matlabengine==24.1.4
71
+ $ python -m pip install matlabengine==24.2
71
72
  ```
72
73
 
73
74
  ### macOS
74
75
  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>
75
76
 
76
77
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
77
- ```/Applications/MATLAB_R2024a.app```
78
+ ```/Applications/MATLAB_R2024b.app```
78
79
 
79
80
  When MATLAB is not installed in the default location, the bin/*architecture* directory within the MATLAB root directory must be added to the environment variable DYLD_LIBRARY_PATH. 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).
80
81
 
@@ -91,7 +92,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
91
92
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
92
93
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
93
94
  ```bash
94
- $ python -m pip install matlabengine==24.1.4
95
+ $ python -m pip install matlabengine==24.2
95
96
  ```
96
97
 
97
98
  ---
File without changes
File without changes