numbox 0.2.13a0__py3-none-any.whl → 0.2.14__py3-none-any.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.

Potentially problematic release.


This version of numbox might be problematic. Click here for more details.

numbox/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.2.13a'
1
+ __version__ = '0.2.14'
@@ -1,3 +1,4 @@
1
+ from ctypes import CDLL
1
2
  from ctypes.util import find_library
2
3
  from platform import system
3
4
 
@@ -13,19 +14,22 @@ def load_lib(name):
13
14
  scope, consider setting `DYLD_LIBRARY_PATH`."""
14
15
  if platform_ in ("Darwin", "Linux"):
15
16
  from os import RTLD_GLOBAL
16
- from ctypes import CDLL
17
17
 
18
18
  lib_path = find_library(name)
19
19
  _ = CDLL(lib_path, mode=RTLD_GLOBAL)
20
20
  elif platform_ == "Windows":
21
- from ctypes import WinDLL, cdll
22
-
21
+ from ctypes.util import find_msvcrt
23
22
  if name in ("c", "m"):
24
- _ = cdll.msvcrt
23
+ lib_path = find_msvcrt()
24
+ if lib_path is not None:
25
+ _ = CDLL(lib_path, winmode=0)
26
+ else:
27
+ import ctypes
28
+ _ = ctypes.cdll.msvcrt
25
29
  else:
26
30
  lib_path = find_library(name)
27
31
  if lib_path is None:
28
32
  raise RuntimeError(f"Could not find shared library for {name}")
29
- _ = WinDLL(lib_path, winmode=0)
33
+ _ = CDLL(lib_path, winmode=0)
30
34
  else:
31
35
  raise RuntimeError(f"Platform {platform_} is not supported, yet.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: numbox
3
- Version: 0.2.13a0
3
+ Version: 0.2.14
4
4
  Author: Mikhail Goykhman
5
5
  License: MIT License (with Citation Clause)
6
6
 
@@ -31,14 +31,14 @@ License: MIT License (with Citation Clause)
31
31
  SOFTWARE.
32
32
 
33
33
  Keywords: llvmlite,numba,numpy
34
- Requires-Python: >=3.9
34
+ Requires-Python: >=3.10
35
35
  Description-Content-Type: text/markdown
36
36
  License-File: LICENSE
37
37
  Requires-Dist: numpy<2.4.0,>=2.1.0
38
- Requires-Dist: llvmlite<0.46.0,>=0.44.0; python_version < "3.14"
38
+ Requires-Dist: llvmlite<0.46.0,>=0.43.0; python_version < "3.14"
39
39
  Requires-Dist: numba<0.63.0,>=0.60.0; python_version < "3.14"
40
- Requires-Dist: llvmlite==0.46.0b1; python_version == "3.14"
41
- Requires-Dist: numba==0.63.0b1; python_version == "3.14"
40
+ Requires-Dist: llvmlite==0.46.0; python_version == "3.14"
41
+ Requires-Dist: numba==0.63.1; python_version == "3.14"
42
42
  Provides-Extra: docs
43
43
  Requires-Dist: sphinx==8.1.3; extra == "docs"
44
44
  Requires-Dist: sphinx-sitemap==2.7.2; extra == "docs"
@@ -1,4 +1,4 @@
1
- numbox/__init__.py,sha256=eR3cb8JVE2kL1PwkQBo-g0f66KR-1tEOX1qe-SWmaKI,24
1
+ numbox/__init__.py,sha256=rfy0OFG8rEvQ6bRSAURO04IijvDzG0it93O1BM4V4E0,23
2
2
  numbox/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  numbox/core/configurations.py,sha256=0bCmxXL-QMwtvyIDhpXLeT-1KJMf_QpH0wLuEvYLGxQ,68
4
4
  numbox/core/any/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -11,7 +11,7 @@ numbox/core/bindings/_math.py,sha256=6iZ_YyW1pVg-wVRA-tUqpFg2gXsB7AiHxvVxvYkDr14
11
11
  numbox/core/bindings/_sqlite.py,sha256=HeZHQuVn5PlVxPSIvXTmwSYZUtxl3N7SD35-ozdE6OY,637
12
12
  numbox/core/bindings/call.py,sha256=LrSsp-b4Mz0Zjg7H3XkThEIOEqVcrcViEjI9yqhuMV4,1710
13
13
  numbox/core/bindings/signatures.py,sha256=OcSBDpJ422eoWkJXxHPEanMNbVB7bq9f5bRq5LGr86w,479
14
- numbox/core/bindings/utils.py,sha256=d7I3ooKiGDardy11bSxty8rzqKb3ku3tHNNYk-4uxlM,1008
14
+ numbox/core/bindings/utils.py,sha256=OATfF4k8e5oPa9_wlHHkLQhY_DhrPNKYdeeGu9Nj5yg,1180
15
15
  numbox/core/proxy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  numbox/core/proxy/proxy.py,sha256=Wt7yzswDmeQXt0yjcTcnLi2coneowSHWXy_IFpZZJMU,3612
17
17
  numbox/core/work/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -33,8 +33,8 @@ numbox/utils/meminfo.py,sha256=ykFi8Vt0WcHI3ztgMwvpn6NqaflDSQGL8tjI01jrzm0,1759
33
33
  numbox/utils/standard.py,sha256=2fPrMlSXe2TG3CIfjJOT8LQkHEH86oOOj1AvwQkYCfA,450
34
34
  numbox/utils/timer.py,sha256=5_d690Fb3L2axJBRxtoB0qe23exBosNR4qu6cno4QfY,641
35
35
  numbox/utils/void_type.py,sha256=IkZsjNeAIShYJtvWbvERdHnl_mbF1rCRWiM3gp6II8U,404
36
- numbox-0.2.13a0.dist-info/LICENSE,sha256=YYgNvjH_p6-1NsdrIqGJnr1GUbZzA_8DxsP6vVfM6nY,1446
37
- numbox-0.2.13a0.dist-info/METADATA,sha256=2UtpfL8PiZtpmlSMpLp1sFHpoXVkx0RKt2C2XW9gth8,3128
38
- numbox-0.2.13a0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
39
- numbox-0.2.13a0.dist-info/top_level.txt,sha256=A67jOkfqidCSYYm6ifjN_WZyIiR1B27fjxv6nNbPvjc,7
40
- numbox-0.2.13a0.dist-info/RECORD,,
36
+ numbox-0.2.14.dist-info/LICENSE,sha256=YYgNvjH_p6-1NsdrIqGJnr1GUbZzA_8DxsP6vVfM6nY,1446
37
+ numbox-0.2.14.dist-info/METADATA,sha256=UOwvcQjSOQ54H2_o_e-kmTfJF1hlU8SjQHvbWbB-58w,3123
38
+ numbox-0.2.14.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
39
+ numbox-0.2.14.dist-info/top_level.txt,sha256=A67jOkfqidCSYYm6ifjN_WZyIiR1B27fjxv6nNbPvjc,7
40
+ numbox-0.2.14.dist-info/RECORD,,