matlabengine 23.2.3__tar.gz → 24.1.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-23.2.3 → matlabengine-24.1.2}/PKG-INFO +7 -7
  2. {matlabengine-23.2.3 → matlabengine-24.1.2}/README.md +6 -6
  3. {matlabengine-23.2.3 → matlabengine-24.1.2}/setup.py +6 -5
  4. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/__init__.py +11 -6
  5. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/fevalfuture.py +0 -6
  6. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/futureresult.py +1 -6
  7. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlabengine.egg-info/PKG-INFO +7 -7
  8. {matlabengine-23.2.3 → matlabengine-24.1.2}/LICENSE.txt +0 -0
  9. {matlabengine-23.2.3 → matlabengine-24.1.2}/pyproject.toml +0 -0
  10. {matlabengine-23.2.3 → matlabengine-24.1.2}/setup.cfg +0 -0
  11. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/__init__.py +0 -0
  12. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/_arch.txt +0 -0
  13. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/basefuture.py +0 -0
  14. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/engineerror.py +0 -0
  15. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/enginehelper.py +0 -0
  16. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/enginesession.py +0 -0
  17. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/matlabengine.py +0 -0
  18. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlab/engine/matlabfuture.py +0 -0
  19. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlabengine.egg-info/SOURCES.txt +0 -0
  20. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlabengine.egg-info/dependency_links.txt +0 -0
  21. {matlabengine-23.2.3 → matlabengine-24.1.2}/src/matlabengine.egg-info/not-zip-safe +0 -0
  22. {matlabengine-23.2.3 → matlabengine-24.1.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: 23.2.3
3
+ Version: 24.1.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
@@ -27,7 +27,7 @@ The MATLAB® Engine API for Python® provides a package to integrate MATLA
27
27
  ## Requirements
28
28
  ### Required MathWorks Products
29
29
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
30
- * MATLAB release R2023b
30
+ * MATLAB release R2024a
31
31
 
32
32
  ### Required 3rd Party Products
33
33
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
@@ -42,7 +42,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
42
42
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
43
43
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
44
44
  ```bash
45
- $ python -m pip install matlabengine==23.2.3
45
+ $ python -m pip install matlabengine==24.1.2
46
46
  ```
47
47
 
48
48
 
@@ -50,7 +50,7 @@ $ python -m pip install matlabengine==23.2.3
50
50
  ### Linux&reg;
51
51
  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
52
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
53
- ```/usr/local/MATLAB/R2023b```
53
+ ```/usr/local/MATLAB/R2024a```
54
54
 
55
55
  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
56
 
@@ -67,14 +67,14 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
67
67
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
68
68
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
69
69
  ```bash
70
- $ python -m pip install matlabengine==23.2.3
70
+ $ python -m pip install matlabengine==24.1.2
71
71
  ```
72
72
 
73
73
  ### macOS
74
74
  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
75
 
76
76
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
77
- ```/Applications/MATLAB_R2023b.app```
77
+ ```/Applications/MATLAB_R2024a.app```
78
78
 
79
79
  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
80
 
@@ -91,7 +91,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
91
91
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
92
92
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
93
93
  ```bash
94
- $ python -m pip install matlabengine==23.2.3
94
+ $ python -m pip install matlabengine==24.1.2
95
95
  ```
96
96
 
97
97
  ---
@@ -6,7 +6,7 @@ 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 R2023b
9
+ * MATLAB release R2024a
10
10
 
11
11
  ### Required 3rd Party Products
12
12
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
@@ -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==23.2.3
24
+ $ python -m pip install matlabengine==24.1.2
25
25
  ```
26
26
 
27
27
 
@@ -29,7 +29,7 @@ $ python -m pip install matlabengine==23.2.3
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/R2023b```
32
+ ```/usr/local/MATLAB/R2024a```
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==23.2.3
49
+ $ python -m pip install matlabengine==24.1.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_R2023b.app```
56
+ ```/Applications/MATLAB_R2024a.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==23.2.3
73
+ $ python -m pip install matlabengine==24.1.2
74
74
  ```
75
75
 
76
76
  ---
@@ -1,4 +1,4 @@
1
- # Copyright 2022-2023 Mathworks, Inc.
1
+ # Copyright 2024 Mathworks, Inc.
2
2
 
3
3
  from setuptools import setup, find_packages
4
4
  from setuptools.command.build_py import build_py
@@ -21,10 +21,10 @@ class _MatlabFinder(build_py):
21
21
  }
22
22
 
23
23
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
24
- MATLAB_REL = 'R2023b'
24
+ MATLAB_REL = 'R2024a'
25
25
 
26
26
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
27
- MATLAB_VER = '23.2.3'
27
+ MATLAB_VER = '24.1.2'
28
28
 
29
29
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
30
30
  SUPPORTED_PYTHON_VERSIONS = set(['3.9', '3.10', '3.11'])
@@ -37,7 +37,8 @@ class _MatlabFinder(build_py):
37
37
  "9.12": "R2022a",
38
38
  "9.13": "R2022b",
39
39
  "9.14": "R2023a",
40
- "23.2": "R2023b"
40
+ "23.2": "R2023b",
41
+ "24.1": "R2024a"
41
42
  }
42
43
 
43
44
  DEFAULT_INSTALLS = {
@@ -415,7 +416,7 @@ if __name__ == '__main__':
415
416
  setup(
416
417
  name="matlabengine",
417
418
  # MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string)
418
- version="23.2.3",
419
+ version="24.1.2",
419
420
  description='A module to call MATLAB from Python',
420
421
  author='MathWorks',
421
422
  license="LICENSE.txt, located in this repository",
@@ -1,4 +1,4 @@
1
- #Copyright 2014-2022 MathWorks, Inc.
1
+ #Copyright 2014-2023 MathWorks, Inc.
2
2
 
3
3
  """
4
4
  The MATLAB Engine enables you to call any MATLAB statement either synchronously
@@ -44,7 +44,10 @@ success = False
44
44
  firstExceptionMessage = ''
45
45
  secondExceptionMessage = ''
46
46
  try:
47
- pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
47
+ if _PYTHONVERSION != '3_9' and _PYTHONVERSION != '3_10':
48
+ pythonengine = importlib.import_module("matlabengineforpython_abi3")
49
+ else:
50
+ pythonengine = importlib.import_module("matlabengineforpython" + _PYTHONVERSION)
48
51
  except Exception as firstE:
49
52
  firstExceptionMessage = str(firstE)
50
53
 
@@ -65,7 +68,10 @@ if firstExceptionMessage:
65
68
  else:
66
69
  os.environ[_envs[_arch]] = _bin_dir
67
70
  os.add_dll_directory(_bin_dir)
68
- pythonengine = importlib.import_module("matlabengineforpython"+_PYTHONVERSION)
71
+ if _PYTHONVERSION != '3_9' or _PYTHONVERSION != '3_10':
72
+ pythonengine = importlib.import_module("matlabengineforpython_abi3")
73
+ else:
74
+ pythonengine = importlib.import_module("matlabengineforpython" + _PYTHONVERSION)
69
75
  except Exception as secondE:
70
76
  str1 = 'Please reinstall MATLAB Engine for Python or contact '
71
77
  str2 = 'MathWorks Technical Support for assistance:\nFirst issue: {}\nSecond issue: {}'.format(
@@ -106,9 +112,8 @@ def start_matlab(option="-nodesktop", **kwargs):
106
112
 
107
113
  Parameters
108
114
  option - MATLAB startup option.
109
- async, background: bool - start MATLAB asynchronously or not. This parameter
110
- is optional and false by default. "async" is a synonym for "background"
111
- that will be removed in a future release.
115
+ background: bool - start MATLAB asynchronously or not. This parameter
116
+ is optional and false by default.
112
117
 
113
118
  Returns
114
119
  MatlabEngine - if aync or background is false. This object can be used to evaluate
@@ -19,12 +19,6 @@ from matlab.engine import BaseFuture
19
19
  import time
20
20
  import weakref
21
21
 
22
- try:
23
- long
24
- except NameError:
25
- long = int
26
-
27
-
28
22
  class FevalFuture(BaseFuture):
29
23
  """
30
24
  A FevalFuture object is used to hold the future result of a MATLAB
@@ -16,11 +16,6 @@ from matlab.engine import pythonengine
16
16
  from matlab.engine import MatlabFuture
17
17
  from matlab.engine import FevalFuture
18
18
 
19
- try:
20
- long
21
- except NameError:
22
- long = int
23
-
24
19
  class FutureResult():
25
20
  """
26
21
  A FutureResult object is used to hold the future result of a function call.
@@ -58,7 +53,7 @@ class FutureResult():
58
53
  RejectedExecutionError - an error occurs if the engine is terminated.
59
54
  """
60
55
  if timeout is not None:
61
- if not isinstance(timeout, (int, long, float)):
56
+ if not isinstance(timeout, (int, float)):
62
57
  raise TypeError(pythonengine.getMessage('TimeoutMustBeNumeric', type(timeout).__name__))
63
58
 
64
59
  if timeout < 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: matlabengine
3
- Version: 23.2.3
3
+ Version: 24.1.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
@@ -27,7 +27,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
27
27
  ## Requirements
28
28
  ### Required MathWorks Products
29
29
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
30
- * MATLAB release R2023b
30
+ * MATLAB release R2024a
31
31
 
32
32
  ### Required 3rd Party Products
33
33
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
@@ -42,7 +42,7 @@ The MATLAB&reg; Engine API for Python&reg; provides a package to integrate MATLA
42
42
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
43
43
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
44
44
  ```bash
45
- $ python -m pip install matlabengine==23.2.3
45
+ $ python -m pip install matlabengine==24.1.2
46
46
  ```
47
47
 
48
48
 
@@ -50,7 +50,7 @@ $ python -m pip install matlabengine==23.2.3
50
50
  ### Linux&reg;
51
51
  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
52
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
53
- ```/usr/local/MATLAB/R2023b```
53
+ ```/usr/local/MATLAB/R2024a```
54
54
 
55
55
  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
56
 
@@ -67,14 +67,14 @@ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<matlabroot>/bin/glnxa64
67
67
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
68
68
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
69
69
  ```bash
70
- $ python -m pip install matlabengine==23.2.3
70
+ $ python -m pip install matlabengine==24.1.2
71
71
  ```
72
72
 
73
73
  ### macOS
74
74
  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
75
 
76
76
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
77
- ```/Applications/MATLAB_R2023b.app```
77
+ ```/Applications/MATLAB_R2024a.app```
78
78
 
79
79
  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
80
 
@@ -91,7 +91,7 @@ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:<matlabroot>/bin/maci64
91
91
  MATLAB Engine API for Python can be installed directly from the Python Package Index.
92
92
  <!-- MUST_BE_UPDATED_EACH_RELEASE (Search repo for this string) -->
93
93
  ```bash
94
- $ python -m pip install matlabengine==23.2.3
94
+ $ python -m pip install matlabengine==24.1.2
95
95
  ```
96
96
 
97
97
  ---
File without changes
File without changes