numbox 0.2.11__py3-none-any.whl → 0.2.13a0__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 +1 -1
- numbox/core/bindings/utils.py +22 -4
- {numbox-0.2.11.dist-info → numbox-0.2.13a0.dist-info}/METADATA +5 -3
- {numbox-0.2.11.dist-info → numbox-0.2.13a0.dist-info}/RECORD +7 -7
- {numbox-0.2.11.dist-info → numbox-0.2.13a0.dist-info}/LICENSE +0 -0
- {numbox-0.2.11.dist-info → numbox-0.2.13a0.dist-info}/WHEEL +0 -0
- {numbox-0.2.11.dist-info → numbox-0.2.13a0.dist-info}/top_level.txt +0 -0
numbox/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.2.
|
|
1
|
+
__version__ = '0.2.13a'
|
numbox/core/bindings/utils.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
from ctypes import CDLL
|
|
2
1
|
from ctypes.util import find_library
|
|
3
|
-
from
|
|
2
|
+
from platform import system
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
platform_ = system()
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
def load_lib(name):
|
|
@@ -9,5 +11,21 @@ def load_lib(name):
|
|
|
9
11
|
mostly just prefixes `lib` and suffixes extension.
|
|
10
12
|
When adding (custom) libraries to the global symbol
|
|
11
13
|
scope, consider setting `DYLD_LIBRARY_PATH`."""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
if platform_ in ("Darwin", "Linux"):
|
|
15
|
+
from os import RTLD_GLOBAL
|
|
16
|
+
from ctypes import CDLL
|
|
17
|
+
|
|
18
|
+
lib_path = find_library(name)
|
|
19
|
+
_ = CDLL(lib_path, mode=RTLD_GLOBAL)
|
|
20
|
+
elif platform_ == "Windows":
|
|
21
|
+
from ctypes import WinDLL, cdll
|
|
22
|
+
|
|
23
|
+
if name in ("c", "m"):
|
|
24
|
+
_ = cdll.msvcrt
|
|
25
|
+
else:
|
|
26
|
+
lib_path = find_library(name)
|
|
27
|
+
if lib_path is None:
|
|
28
|
+
raise RuntimeError(f"Could not find shared library for {name}")
|
|
29
|
+
_ = WinDLL(lib_path, winmode=0)
|
|
30
|
+
else:
|
|
31
|
+
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.
|
|
3
|
+
Version: 0.2.13a0
|
|
4
4
|
Author: Mikhail Goykhman
|
|
5
5
|
License: MIT License (with Citation Clause)
|
|
6
6
|
|
|
@@ -34,9 +34,11 @@ Keywords: llvmlite,numba,numpy
|
|
|
34
34
|
Requires-Python: >=3.9
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
License-File: LICENSE
|
|
37
|
-
Requires-Dist: llvmlite<0.46.0,>=0.44.0
|
|
38
|
-
Requires-Dist: numba<0.63.0,>=0.60.0
|
|
39
37
|
Requires-Dist: numpy<2.4.0,>=2.1.0
|
|
38
|
+
Requires-Dist: llvmlite<0.46.0,>=0.44.0; python_version < "3.14"
|
|
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
42
|
Provides-Extra: docs
|
|
41
43
|
Requires-Dist: sphinx==8.1.3; extra == "docs"
|
|
42
44
|
Requires-Dist: sphinx-sitemap==2.7.2; extra == "docs"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
numbox/__init__.py,sha256=
|
|
1
|
+
numbox/__init__.py,sha256=eR3cb8JVE2kL1PwkQBo-g0f66KR-1tEOX1qe-SWmaKI,24
|
|
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=
|
|
14
|
+
numbox/core/bindings/utils.py,sha256=d7I3ooKiGDardy11bSxty8rzqKb3ku3tHNNYk-4uxlM,1008
|
|
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.
|
|
37
|
-
numbox-0.2.
|
|
38
|
-
numbox-0.2.
|
|
39
|
-
numbox-0.2.
|
|
40
|
-
numbox-0.2.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|