170.5. python3-pynest2d-5.11.0.alpha0
Python bindings for libnest2d, the build-plate arranger in Cura
5.11.0.alpha0-2 · LGPL-3.0-or-later · 5.5 SBU · 859.7 KiB, 8 files · 41_system, 876 of 1047 · ports/core/python-hw/python3-pynest2d
Homepage: https://github.com/Ultimaker/pynest2d
Depends on: python3, python3-pip, python3-sip, python3-setuptools, libnest2d, polyclipping, nlopt, boost.
Required by (1): cura.
Sources: python3-pynest2d-5.11.0.alpha0.tar.gz (23.6 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-pynest2d'
build.sh:
cat > pyproject.toml <<TOML
[build-system]
requires = ["sip >=6.8"]
build-backend = "sipbuild.api"
[project]
name = "pynest2d"
version = "$version"
[tool.sip.project]
sip-files-dir = "python"
[tool.sip.bindings.pynest2d]
exceptions = true
release-gil = true
pep484-pyi = true
define-macros = ["LIBNEST2D_GEOMETRIES_clipper", "LIBNEST2D_OPTIMIZER_nlopt", "LIBNEST2D_THREADING_std"]
libraries = ["polyclipping", "nlopt"]
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/pynest2d*.so >/dev/null
Directories: /usr/lib/python3.14/site-packages/pynest2d-5.11.0.alpha0.dist-info, /usr/share/licenses/python3-pynest2d.