aion-wgpu 29.0.4__py3-none-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.
aion_wgpu/__init__.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
"""The prebuilt wgpu-native runtime for `aion`'s optional GPU backend.
|
|
3
|
+
|
|
4
|
+
This package ships a single native library and exposes its path. `aion` imports
|
|
5
|
+
this lazily and hands the path to its native loader (via ``AION_WGPU_LIB``); you
|
|
6
|
+
normally never call this yourself. Install it with ``pip install aion-engine[gpu]``.
|
|
7
|
+
"""
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
# Versioned after the wgpu-native release wrapped here (see build.zig.zon).
|
|
13
|
+
__version__ = "29.0.4"
|
|
14
|
+
|
|
15
|
+
_DIR = Path(__file__).resolve().parent
|
|
16
|
+
_LIB_NAMES = ("wgpu_native.dll", "libwgpu_native.so", "libwgpu_native.dylib")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def library_path() -> str | None:
|
|
20
|
+
"""Absolute path to the bundled wgpu-native library, or None if not present."""
|
|
21
|
+
for name in _LIB_NAMES:
|
|
22
|
+
candidate = _DIR / name
|
|
23
|
+
if candidate.is_file():
|
|
24
|
+
return str(candidate)
|
|
25
|
+
return None
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
__all__ = ["library_path", "__version__"]
|
aion_wgpu/py.typed
ADDED
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aion-wgpu
|
|
3
|
+
Version: 29.0.4
|
|
4
|
+
Summary: Prebuilt wgpu-native runtime for the optional GPU backend of aion
|
|
5
|
+
Author: Angelos-Ermis Mangos
|
|
6
|
+
Project-URL: Homepage, https://github.com/RubyBit/aion
|
|
7
|
+
Keywords: wgpu,webgpu,gpu,aion
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# aion-wgpu
|
|
16
|
+
|
|
17
|
+
The prebuilt [wgpu-native](https://github.com/gfx-rs/wgpu-native) runtime for the
|
|
18
|
+
optional GPU backend of [`aion-engine`](https://pypi.org/project/aion-engine/).
|
|
19
|
+
You don't install it directly:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install aion-engine[gpu]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`aion-engine`'s wheels already contain the GPU backend code but link **no** wgpu:
|
|
26
|
+
the library is loaded at runtime via `dlopen`. This package is the delivery
|
|
27
|
+
vehicle — one platform-specific shared library (`wgpu_native.dll` /
|
|
28
|
+
`libwgpu_native.so` / `libwgpu_native.dylib`) plus a `library_path()` helper that
|
|
29
|
+
`aion` calls on import to point its loader at it.
|
|
30
|
+
|
|
31
|
+
Keeping the multi-MiB runtime in its own package keeps `pip install aion-engine`
|
|
32
|
+
small and CPU-only by default. One wheel is published per platform the runtime
|
|
33
|
+
wheels target: Windows x64, Linux x86_64/aarch64, macOS arm64/x86_64.
|
|
34
|
+
|
|
35
|
+
The version tracks the wgpu-native release it wraps (pinned in the repo's
|
|
36
|
+
`build.zig.zon`, the single source of truth for that URL and hash).
|
|
37
|
+
|
|
38
|
+
Licensing: the packaging code here is Apache-2.0; the bundled `wgpu_native`
|
|
39
|
+
library ships under the wgpu project's own terms (Apache-2.0 OR MIT).
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
aion_wgpu/__init__.py,sha256=RqJEb6emUXBs4aW7ARnmfOq1zKrYiWNmujDZiCqkznA,973
|
|
2
|
+
aion_wgpu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
aion_wgpu/wgpu_native.dll,sha256=y0G-NjWfNE5SN04sXXHaMArakkCAl5n39y_4WNAnZ2Q,9117184
|
|
4
|
+
aion_wgpu-29.0.4.dist-info/METADATA,sha256=L3JHKmI8kOm92gdMYXOI838O_Na9zZWC4sreYo7JA9s,1663
|
|
5
|
+
aion_wgpu-29.0.4.dist-info/WHEEL,sha256=Zx98gwb_dQKckJK3HEOVKnxxD52EfU_PXDG_usMJ2ng,98
|
|
6
|
+
aion_wgpu-29.0.4.dist-info/top_level.txt,sha256=ohoQX4vIrbkUmqMnt1YHPCfhibBfqLQqeOo0sXcxcvk,10
|
|
7
|
+
aion_wgpu-29.0.4.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aion_wgpu
|