scs 3.2.7__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 CHANGED
@@ -2,36 +2,38 @@
2
2
 
3
3
 
4
4
  # start delvewheel patch
5
- def _delvewheel_patch_1_8_0():
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.7')
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
- with open(os.path.join(libs_dir, '.load-order-scs-3.2.7')) as file:
18
+ import ctypes.wintypes
19
+ with open(os.path.join(libs_dir, '.load-order-scs-3.2.8')) as file:
19
20
  load_order = file.read().split()
20
21
  kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
21
- kernel32.LoadLibraryExW.restype = ctypes.c_void_p
22
+ kernel32.LoadLibraryExW.restype = ctypes.wintypes.HMODULE
23
+ kernel32.LoadLibraryExW.argtypes = ctypes.wintypes.LPCWSTR, ctypes.wintypes.HANDLE, ctypes.wintypes.DWORD
22
24
  for lib in load_order:
23
25
  lib_path = os.path.join(os.path.join(libs_dir, lib))
24
- if os.path.isfile(lib_path) and not kernel32.LoadLibraryExW(ctypes.c_wchar_p(lib_path), None, 8):
26
+ if os.path.isfile(lib_path) and not kernel32.LoadLibraryExW(lib_path, None, 8):
25
27
  raise OSError('Error loading {}; {}'.format(lib, ctypes.FormatError(ctypes.get_last_error())))
26
28
 
27
29
 
28
- _delvewheel_patch_1_8_0()
29
- del _delvewheel_patch_1_8_0
30
+ _delvewheel_patch_1_11_1()
31
+ del _delvewheel_patch_1_11_1
30
32
  # end delvewheel patch
31
33
 
32
34
  from warnings import warn
33
35
  from scipy import sparse
34
- import _scs_direct
36
+ from scs import _scs_direct
35
37
 
36
38
  __version__ = _scs_direct.version()
37
39
  __sizeof_int__ = _scs_direct.sizeof_int()
@@ -56,13 +58,13 @@ SOLVED_INACCURATE = 2 # SCS best guess solved
56
58
 
57
59
  # Choose which SCS to import based on settings.
58
60
  def _select_scs_module(stgs):
61
+
59
62
  if stgs.pop("gpu", False): # False by default
60
63
  if not stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
61
64
  raise NotImplementedError(
62
- "GPU direct solver not yet available, pass `use_indirect=True`."
63
- )
64
- import _scs_gpu
65
-
65
+ "For the GPU direct solver, pass `use_indirect=False cudss=True`.")
66
+ from scs import _scs_gpu
67
+
66
68
  return _scs_gpu
67
69
 
68
70
  if stgs.pop("mkl", False): # False by default
@@ -70,12 +72,21 @@ def _select_scs_module(stgs):
70
72
  raise NotImplementedError(
71
73
  "MKL indirect solver not yet available, pass `use_indirect=False`."
72
74
  )
73
- import _scs_mkl
75
+ from scs import _scs_mkl
74
76
 
75
77
  return _scs_mkl
76
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
+
77
88
  if stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
78
- import _scs_indirect
89
+ from scs import _scs_indirect
79
90
 
80
91
  return _scs_indirect
81
92
 
@@ -109,7 +120,7 @@ class SCS(object):
109
120
 
110
121
  if not sparse.issparse(A):
111
122
  raise TypeError("A is required to be a sparse matrix")
112
- if not sparse.isspmatrix_csc(A):
123
+ if not A.format == "csc":
113
124
  warn(
114
125
  "Converting A to a CSC (compressed sparse column) matrix;"
115
126
  " may take a while."
@@ -139,7 +150,7 @@ class SCS(object):
139
150
  raise TypeError("P is required to be a sparse matrix")
140
151
  if P.shape != (n, n):
141
152
  raise ValueError("P shape not compatible with A,b,c")
142
- if not sparse.isspmatrix_csc(P):
153
+ if not P.format == "csc":
143
154
  warn(
144
155
  "Converting P to a CSC (compressed sparse column) "
145
156
  "matrix; may take a while."
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']
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.1
2
+ Name: scs
3
+ Version: 3.2.8
4
+ Summary: Splitting conic solver
5
+ Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2017 Brendan O'Donoghue
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
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
42
+ Requires-Dist: numpy
43
+ Requires-Dist: scipy
44
+ Description-Content-Type: text/markdown
45
+
46
+ scs-python
47
+ ===
48
+
49
+ [![Build Status](https://github.com/bodono/scs-python/actions/workflows/build.yml/badge.svg)](https://github.com/bodono/scs-python/actions/workflows/build.yml)
50
+ [![Documentation](https://img.shields.io/badge/docs-online-brightgreen?logo=read-the-docs&style=flat)](https://www.cvxgrp.org/scs/)
51
+ [![PyPI Downloads/Month](https://static.pepy.tech/personalized-badge/scs?period=month&units=abbreviation&left_color=grey&right_color=brightgreen&left_text=downloads/month)](https://pepy.tech/project/scs)
52
+
53
+ Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
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
Binary file
@@ -1,4 +0,0 @@
1
- flang-748cd5b22ce830f11f52f8257e155fa3.dll
2
- openblas-c0982aca8008f23dba0bc5dc12a583be.dll
3
- libomp-32223b6dc36d3cc9afac7fa0ea2edfd4.dll
4
- flangrti-caa71c69bfef2a05fa7f6a1f56783775.dll
@@ -1,2 +0,0 @@
1
- Version: 1.8.0
2
- Arguments: ['C:\\Users\\runneradmin\\miniconda3\\envs\\test\\Scripts\\delvewheel', 'repair', 'dist/scs-3.2.7-cp39-cp39-win_amd64.whl']
@@ -1,41 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: scs
3
- Version: 3.2.7
4
- Summary: Splitting conic solver
5
- Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
6
- License: MIT License
7
-
8
- Copyright (c) 2017 Brendan O'Donoghue
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
- Requires-Python: >=3.7
28
- Requires-Dist: numpy
29
- Requires-Dist: scipy
30
- Description-Content-Type: text/markdown
31
-
32
- scs-python
33
- ===
34
-
35
- [![Build Status](https://github.com/bodono/scs-python/actions/workflows/build.yml/badge.svg)](https://github.com/bodono/scs-python/actions/workflows/build.yml)
36
- [![Documentation](https://img.shields.io/badge/docs-online-brightgreen?logo=read-the-docs&style=flat)](https://www.cvxgrp.org/scs/)
37
- [![PyPI package](https://img.shields.io/pypi/dm/scs?label=PyPI%20downloads)](https://pypi.org/project/scs/)
38
-
39
-
40
- Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
41
- The full documentation is available [here](https://www.cvxgrp.org/scs/).
@@ -1,15 +0,0 @@
1
- _scs_direct.cp39-win_amd64.dll.a,sha256=V5BYwNKfrPqHFq0SX9-ZC7NrmcT_UwEQKx5sax6nrck,1774
2
- _scs_direct.cp39-win_amd64.pyd,sha256=OtlnSrRCddEINemSMo23rFz0uetcAOjP101AdOKyZOM,186604
3
- _scs_indirect.cp39-win_amd64.dll.a,sha256=HNJHS4z9s_b-y4ZHyO9Fbm1yC7OoCKSbuJory9hv86w,1804
4
- _scs_indirect.cp39-win_amd64.pyd,sha256=LZDQiIdAejmW4nHXrB9YlzW6WX1YsrWIW3Vc45egfbk,158476
5
- scs/__init__.py,sha256=rHoVbPufBuY2azHrnxVIdTloIzoQqh9SCHnjxNM6r40,7723
6
- scs-3.2.7.data/platlib/.load-order-scs-3.2.7,sha256=zvN_TsJZi_cKTbS2zGSHwmHFA6G0UY_KkotgcrK6lK8,179
7
- scs-3.2.7.data/platlib/flang-748cd5b22ce830f11f52f8257e155fa3.dll,sha256=Lo8J8JtNcex3BZsIP9zWrT1un7wQlj6tBWJZsYSxSWg,1679360
8
- scs-3.2.7.data/platlib/flangrti-caa71c69bfef2a05fa7f6a1f56783775.dll,sha256=_MD5GK7NUJfl2JP3LL1N1TRfPty-4yvoU_VXGGHtBIg,50688
9
- scs-3.2.7.data/platlib/libomp-32223b6dc36d3cc9afac7fa0ea2edfd4.dll,sha256=z0O154uGZMc0NmrZm756Nn_lDThE8mfJIPHmKA08Vr4,612864
10
- scs-3.2.7.data/platlib/openblas-c0982aca8008f23dba0bc5dc12a583be.dll,sha256=oeIouplI7ufotQHT79XMgQqffAgpCzocySxQLGbkEeg,28648960
11
- scs-3.2.7.dist-info/DELVEWHEEL,sha256=trm3QtmwFNmZSPleNeDTDvrtowlHP0oCp2itQBIkqjA,150
12
- scs-3.2.7.dist-info/LICENSE,sha256=7Lc8bCEkAOhTRGOUitKX0hhZiZ-e_jS1V_naEQR5YDw,1096
13
- scs-3.2.7.dist-info/METADATA,sha256=r4UxDdbEc422PQn5y1VRBATfnQPTfjhj5WBG9rQfxZE,2054
14
- scs-3.2.7.dist-info/RECORD,,
15
- scs-3.2.7.dist-info/WHEEL,sha256=8AdrFzOtKQ6LLJ-VyqCU3y1iN8N--fMXYqrdkeTKDn0,83
File without changes
File without changes