170.3. python3-pyarcus-5.12.0
Python bindings for the Arcus socket Cura talks to CuraEngine through
5.12.0-2 · LGPL-3.0-or-later · 0.5 SBU · 297.9 KiB, 8 files · 41_system, 874 of 1047 · ports/core/python-hw/python3-pyarcus
Homepage: https://github.com/Ultimaker/pyArcus
Depends on: python3, python3-pip, python3-sip, python3-setuptools, pkgconf, libarcus, protobuf, abseil-cpp.
Required by (2): cura, uranium.
Sources: python3-pyarcus-5.12.0.tar.gz (16.3 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install python3-pyarcus'
build.sh:
_pblibs=
for _l in $(pkg-config --libs-only-l protobuf); do
_pblibs="$_pblibs${_pblibs:+, }\"${_l#-l}\""
done
cat > pyproject.toml <<TOML
[build-system]
requires = ["sip >=6.8"]
build-backend = "sipbuild.api"
[project]
name = "pyArcus"
version = "$version"
[tool.sip.project]
sip-files-dir = "python"
[tool.sip.bindings.pyArcus]
exceptions = true
release-gil = true
pep484-pyi = true
headers = ["pyArcus/PythonMessage.h"]
sources = ["src/PythonMessage.cpp"]
include-dirs = ["$SRC/include"]
libraries = ["Arcus", $_pblibs]
extra-compile-args = ["-std=c++17"]
TOML
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
ls "$PKG"/usr/lib/python3*/site-packages/pyArcus*.so >/dev/null
Directories: /usr/lib/python3.14/site-packages/pyarcus-5.12.0.dist-info, /usr/share/licenses/python3-pyarcus.