scs 3.2.7.post2__cp39-cp39-win_amd64.whl → 3.2.8__cp39-cp39-win_amd64.whl
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.
- scs/__init__.py +24 -15
- _scs_direct.cp39-win_amd64.dll.a → scs/_scs_direct.cp39-win_amd64.dll.a +0 -0
- scs/_scs_direct.cp39-win_amd64.pyd +0 -0
- _scs_indirect.cp39-win_amd64.dll.a → scs/_scs_indirect.cp39-win_amd64.dll.a +0 -0
- scs/_scs_indirect.cp39-win_amd64.pyd +0 -0
- scs-3.2.8.dist-info/DELVEWHEEL +2 -0
- {scs-3.2.7.post2.dist-info → scs-3.2.8.dist-info}/METADATA +16 -4
- scs-3.2.8.dist-info/RECORD +12 -0
- scs.libs/.load-order-scs-3.2.8 +1 -0
- scs-3.2.7.post2.data/platlib/openblas-799dfccf6f75ab7d2d11c29934d646e6.dll → scs.libs/openblas-b2d49d518a79c6ab6a81a0e5be0c1c94.dll +0 -0
- _scs_direct.cp39-win_amd64.pyd +0 -0
- _scs_indirect.cp39-win_amd64.pyd +0 -0
- scs-3.2.7.post2.data/platlib/.load-order-scs-3.2.7.post2 +0 -1
- scs-3.2.7.post2.dist-info/DELVEWHEEL +0 -2
- scs-3.2.7.post2.dist-info/RECORD +0 -12
- {scs-3.2.7.post2.dist-info → scs-3.2.8.dist-info}/LICENSE +0 -0
- {scs-3.2.7.post2.dist-info → scs-3.2.8.dist-info}/WHEEL +0 -0
scs/__init__.py
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
# start delvewheel patch
|
5
|
-
def
|
5
|
+
def _delvewheel_patch_1_11_1():
|
6
6
|
import ctypes
|
7
7
|
import os
|
8
8
|
import platform
|
9
9
|
import sys
|
10
|
-
libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, '.'))
|
10
|
+
libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'scs.libs'))
|
11
11
|
is_conda_cpython = platform.python_implementation() == 'CPython' and (hasattr(ctypes.pythonapi, 'Anaconda_GetVersion') or 'packaged by conda-forge' in sys.version)
|
12
12
|
if sys.version_info[:2] >= (3, 8) and not is_conda_cpython or sys.version_info[:2] >= (3, 10):
|
13
13
|
if os.path.isdir(libs_dir):
|
14
14
|
os.add_dll_directory(libs_dir)
|
15
15
|
else:
|
16
|
-
load_order_filepath = os.path.join(libs_dir, '.load-order-scs-3.2.
|
16
|
+
load_order_filepath = os.path.join(libs_dir, '.load-order-scs-3.2.8')
|
17
17
|
if os.path.isfile(load_order_filepath):
|
18
18
|
import ctypes.wintypes
|
19
|
-
with open(os.path.join(libs_dir, '.load-order-scs-3.2.
|
19
|
+
with open(os.path.join(libs_dir, '.load-order-scs-3.2.8')) as file:
|
20
20
|
load_order = file.read().split()
|
21
21
|
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
|
22
22
|
kernel32.LoadLibraryExW.restype = ctypes.wintypes.HMODULE
|
@@ -27,13 +27,13 @@ def _delvewheel_patch_1_9_0():
|
|
27
27
|
raise OSError('Error loading {}; {}'.format(lib, ctypes.FormatError(ctypes.get_last_error())))
|
28
28
|
|
29
29
|
|
30
|
-
|
31
|
-
del
|
30
|
+
_delvewheel_patch_1_11_1()
|
31
|
+
del _delvewheel_patch_1_11_1
|
32
32
|
# end delvewheel patch
|
33
33
|
|
34
34
|
from warnings import warn
|
35
35
|
from scipy import sparse
|
36
|
-
import _scs_direct
|
36
|
+
from scs import _scs_direct
|
37
37
|
|
38
38
|
__version__ = _scs_direct.version()
|
39
39
|
__sizeof_int__ = _scs_direct.sizeof_int()
|
@@ -58,13 +58,13 @@ SOLVED_INACCURATE = 2 # SCS best guess solved
|
|
58
58
|
|
59
59
|
# Choose which SCS to import based on settings.
|
60
60
|
def _select_scs_module(stgs):
|
61
|
+
|
61
62
|
if stgs.pop("gpu", False): # False by default
|
62
63
|
if not stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
|
63
64
|
raise NotImplementedError(
|
64
|
-
"GPU direct solver
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
"For the GPU direct solver, pass `use_indirect=False cudss=True`.")
|
66
|
+
from scs import _scs_gpu
|
67
|
+
|
68
68
|
return _scs_gpu
|
69
69
|
|
70
70
|
if stgs.pop("mkl", False): # False by default
|
@@ -72,12 +72,21 @@ def _select_scs_module(stgs):
|
|
72
72
|
raise NotImplementedError(
|
73
73
|
"MKL indirect solver not yet available, pass `use_indirect=False`."
|
74
74
|
)
|
75
|
-
import _scs_mkl
|
75
|
+
from scs import _scs_mkl
|
76
76
|
|
77
77
|
return _scs_mkl
|
78
78
|
|
79
|
+
if stgs.pop("cudss", False): # False by default
|
80
|
+
if stgs.pop("use_indirect", False):
|
81
|
+
raise NotImplementedError(
|
82
|
+
"cuDSS is a direct solver, pass `use_indirect=False`."
|
83
|
+
)
|
84
|
+
from scs import _scs_cudss
|
85
|
+
|
86
|
+
return _scs_cudss
|
87
|
+
|
79
88
|
if stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
|
80
|
-
import _scs_indirect
|
89
|
+
from scs import _scs_indirect
|
81
90
|
|
82
91
|
return _scs_indirect
|
83
92
|
|
@@ -111,7 +120,7 @@ class SCS(object):
|
|
111
120
|
|
112
121
|
if not sparse.issparse(A):
|
113
122
|
raise TypeError("A is required to be a sparse matrix")
|
114
|
-
if not
|
123
|
+
if not A.format == "csc":
|
115
124
|
warn(
|
116
125
|
"Converting A to a CSC (compressed sparse column) matrix;"
|
117
126
|
" may take a while."
|
@@ -141,7 +150,7 @@ class SCS(object):
|
|
141
150
|
raise TypeError("P is required to be a sparse matrix")
|
142
151
|
if P.shape != (n, n):
|
143
152
|
raise ValueError("P shape not compatible with A,b,c")
|
144
|
-
if not
|
153
|
+
if not P.format == "csc":
|
145
154
|
warn(
|
146
155
|
"Converting P to a CSC (compressed sparse column) "
|
147
156
|
"matrix; may take a while."
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
Version: 1.11.1
|
2
|
+
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-bwksi8gf\\cp39-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-bwksi8gf\\cp39-win_amd64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-bwksi8gf\\cp39-win_amd64\\built_wheel\\scs-3.2.8-cp39-cp39-win_amd64.whl']
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: scs
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.8
|
4
4
|
Summary: Splitting conic solver
|
5
5
|
Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
|
6
6
|
License: MIT License
|
@@ -25,7 +25,20 @@ License: MIT License
|
|
25
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
26
|
SOFTWARE.
|
27
27
|
|
28
|
-
|
28
|
+
Classifier: License :: OSI Approved :: MIT License
|
29
|
+
Classifier: Programming Language :: C
|
30
|
+
Classifier: Programming Language :: Python
|
31
|
+
Classifier: Programming Language :: Python :: 3
|
32
|
+
Classifier: Programming Language :: Python :: 3.11
|
33
|
+
Classifier: Programming Language :: Python :: 3.12
|
34
|
+
Classifier: Programming Language :: Python :: 3.13
|
35
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
36
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
37
|
+
Classifier: Operating System :: Microsoft :: Windows
|
38
|
+
Classifier: Operating System :: POSIX
|
39
|
+
Classifier: Operating System :: Unix
|
40
|
+
Classifier: Operating System :: MacOS
|
41
|
+
Requires-Python: >=3.9
|
29
42
|
Requires-Dist: numpy
|
30
43
|
Requires-Dist: scipy
|
31
44
|
Description-Content-Type: text/markdown
|
@@ -35,8 +48,7 @@ scs-python
|
|
35
48
|
|
36
49
|
[](https://github.com/bodono/scs-python/actions/workflows/build.yml)
|
37
50
|
[](https://www.cvxgrp.org/scs/)
|
38
|
-
[](https://pepy.tech/project/scs)
|
40
52
|
|
41
53
|
Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
|
42
54
|
The full documentation is available [here](https://www.cvxgrp.org/scs/).
|
@@ -0,0 +1,12 @@
|
|
1
|
+
scs/_scs_direct.cp39-win_amd64.dll.a,sha256=vRRn5eZ3JqiwQKelyb0ndR0REQRXDdkyVIIW2FBRmOg,1774
|
2
|
+
scs/_scs_direct.cp39-win_amd64.pyd,sha256=qF47pmyikXfvnQYsWz3lpW_s13NQYSgxrCel9vbP4F0,190552
|
3
|
+
scs/_scs_indirect.cp39-win_amd64.dll.a,sha256=ZXPSGx4DaVxasMC6MoBozWKmxU8Pq4tEAm6hGvxt_74,1804
|
4
|
+
scs/_scs_indirect.cp39-win_amd64.pyd,sha256=b_wJeoWND7VF1AWvIWeLj6dilmPsxlgxlYfmbADfjC8,162424
|
5
|
+
scs/__init__.py,sha256=hU8MgV-uReX9GZP_sCn-j3eu1txWTyJljyo8nVyJ1EY,8191
|
6
|
+
scs-3.2.8.dist-info/DELVEWHEEL,sha256=uIAQYXznuGpM8vSaj-RX4nm3hrpT7tjcUQmjIgWksiM,391
|
7
|
+
scs-3.2.8.dist-info/LICENSE,sha256=7Lc8bCEkAOhTRGOUitKX0hhZiZ-e_jS1V_naEQR5YDw,1096
|
8
|
+
scs-3.2.8.dist-info/METADATA,sha256=NXOnuqeyO5Kl7oCCTUjivQngCggQqXZN25VJyCSVxGU,2806
|
9
|
+
scs-3.2.8.dist-info/RECORD,,
|
10
|
+
scs-3.2.8.dist-info/WHEEL,sha256=8AdrFzOtKQ6LLJ-VyqCU3y1iN8N--fMXYqrdkeTKDn0,83
|
11
|
+
scs.libs/.load-order-scs-3.2.8,sha256=7MhPz83xYXS9nMPUEFju58sOxzbmhFhcNsLw-lWmQ70,46
|
12
|
+
scs.libs/openblas-b2d49d518a79c6ab6a81a0e5be0c1c94.dll,sha256=stSdUYp5xqtqgaDlvgwclBtPD2nY9DrS3u33M-TqcxU,28011520
|
@@ -0,0 +1 @@
|
|
1
|
+
openblas-b2d49d518a79c6ab6a81a0e5be0c1c94.dll
|
Binary file
|
_scs_direct.cp39-win_amd64.pyd
DELETED
Binary file
|
_scs_indirect.cp39-win_amd64.pyd
DELETED
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
openblas-799dfccf6f75ab7d2d11c29934d646e6.dll
|
@@ -1,2 +0,0 @@
|
|
1
|
-
Version: 1.9.0
|
2
|
-
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0hdq73e7\\cp39-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0hdq73e7\\cp39-win_amd64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-0hdq73e7\\cp39-win_amd64\\built_wheel\\scs-3.2.7.post2-cp39-cp39-win_amd64.whl']
|
scs-3.2.7.post2.dist-info/RECORD
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
_scs_direct.cp39-win_amd64.dll.a,sha256=NLJxaDz1am5qya98hZ3qO2f3qwuz25T-DhDvZjqXkmI,1774
|
2
|
-
_scs_direct.cp39-win_amd64.pyd,sha256=dTXYEpWDOnwZC066mnQXEaEeiUKLitwX08cSTC3SWyo,186604
|
3
|
-
_scs_indirect.cp39-win_amd64.dll.a,sha256=lCUugGXb8vr42kAUjmDORS6WvZfoe9F1qTjOxDPfKQ0,1804
|
4
|
-
_scs_indirect.cp39-win_amd64.pyd,sha256=HAcvD2j94Heyei-ckFW7TZ3bO7-0_nRSbfbX5kuVdak,158476
|
5
|
-
scs/__init__.py,sha256=ukiwYtUlyLPooCKSYvBfHlSF6wMbVp-B7ygmty4rSgg,7880
|
6
|
-
scs-3.2.7.post2.data/platlib/.load-order-scs-3.2.7.post2,sha256=RzVPVvC9EURuWvZ6Ywt7IUAik-fvsZHvlYSKCvFUj6Q,46
|
7
|
-
scs-3.2.7.post2.data/platlib/openblas-799dfccf6f75ab7d2d11c29934d646e6.dll,sha256=21Sl8qMbq3NGi8aME593wjWxf1RDoN82hZ_iZX85RoQ,27924480
|
8
|
-
scs-3.2.7.post2.dist-info/DELVEWHEEL,sha256=DPTcFt-Pc_Ia8JmfSuZjCyy1ywtuq1vu9bl2bTZZ7EU,396
|
9
|
-
scs-3.2.7.post2.dist-info/LICENSE,sha256=7Lc8bCEkAOhTRGOUitKX0hhZiZ-e_jS1V_naEQR5YDw,1096
|
10
|
-
scs-3.2.7.post2.dist-info/METADATA,sha256=zV_3V9Og1Jm7FhsW8vuaqKLSXzYeIGIDFmX07Wqotd8,2090
|
11
|
-
scs-3.2.7.post2.dist-info/RECORD,,
|
12
|
-
scs-3.2.7.post2.dist-info/WHEEL,sha256=8AdrFzOtKQ6LLJ-VyqCU3y1iN8N--fMXYqrdkeTKDn0,83
|
File without changes
|
File without changes
|