Skip to content

Commit 54d03a1

Browse files
authored
Merge branch 'main' into input
2 parents 19e0c3f + 5961bec commit 54d03a1

File tree

6 files changed

+698
-78
lines changed

6 files changed

+698
-78
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ jobs:
5252
args: --release --out dist --find-interpreter
5353
manylinux: 2_28
5454
before-script-linux: |
55-
dnf install -y cmake gcc-c++ \
56-
libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel \
57-
wayland-devel libxkbcommon-devel
55+
apt-get update && apt-get install -y cmake g++ \
56+
pkg-config libasound2-dev libudev-dev libxkbcommon-x11-0 \
57+
libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \
58+
libxkbregistry-dev libwayland-client0 libwayland-server0 libwayland-cursor0 \
59+
libwayland-dev libxkbcommon-dev \
60+
wayland-protocols
5861
working-directory: crates/processing_pyo3
5962
- uses: actions/upload-artifact@v4
6063
with:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
from .mewnala import *
2+
3+
# re-export the native submodules as submodules of this module, if they exist
4+
# this allows users to import from `mewnala.math` and `mewnala.color`
5+
# if they exist, without needing to know about the internal structure of the native module
6+
import sys as _sys
7+
from . import mewnala as _native
8+
for _name in ("math", "color"):
9+
_sub = getattr(_native, _name, None)
10+
if _sub is not None:
11+
_sys.modules[f"{__name__}.{_name}"] = _sub
12+
del _sys, _native, _name, _sub

0 commit comments

Comments
 (0)