public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-trimesh] f44: Python bindings for manifold are now packaged
@ 2026-07-23 22:39 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-23 22:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-trimesh
            Branch : f44
            Commit : 3ea983f47e7c1eb7b84a8c56f68b3de32c466eb9
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-05-02T09:06:40+01:00
            Stats  : +12/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-trimesh/c/3ea983f47e7c1eb7b84a8c56f68b3de32c466eb9?branch=f44

            Log:
            Python bindings for manifold are now packaged

- Introduce a bootstrap bcond for breaking a dep. cycle via manifold

---
diff --git a/python-trimesh.spec b/python-trimesh.spec
index 42d1e04..6d43670 100644
--- a/python-trimesh.spec
+++ b/python-trimesh.spec
@@ -1,8 +1,14 @@
-%bcond blender 1
+# Since the tests for manifold’s Python bindings depend on trimesh, a
+# dependency cycle exists: trimesh → manifold → blender, and then trimesh
+# normally depends on both manifold and blender.
+%bcond bootstrap 0
+
+%bcond blender %{without bootstrap}
 %bcond skimage 1
 # https://bugzilla.redhat.com/show_bug.cgi?id=2460576
 # https://github.com/nschloe/meshio/issues/1558
 %bcond meshio %{defined fc44}
+%bcond manifold %{without bootstrap}
 
 Name:           python-trimesh
 Version:        4.12.2
@@ -198,7 +204,10 @@ EOF
 # easy extra:
 #   manifold3d: not yet packaged, https://github.com/elalish/manifold/;
 #               in either “easy” or “recommend” depending on Python version
+%if %{without manifold}
+#   manifold3d: in either “easy” or “recommend” depending on Python version
 %pyproject_patch_dependency manifold3d:ignore
+%endif
 %if ! 0%{?arch_has_embree}
 %pyproject_patch_dependency embreex:ignore
 %endif
@@ -206,8 +215,6 @@ EOF
 # recommend extra:
 #   pyglet: incompatible version 2.x, beginning with F41. See “Path to
 #           supporting Pyglet 2?” https://github.com/mikedh/trimesh/issues/2155
-#   manifold3d: in either “easy” or “recommend” depending on Python version;
-#               already handled above
 %pyproject_patch_dependency pyglet:ignore
 %if %{without skimage}
 %pyproject_patch_dependency scikit-image:ignore
@@ -278,9 +285,8 @@ deselect="${deselect-} --deselect=tests/test_primitives.py::test_primitives"
 # https://github.com/mikedh/trimesh/issues/1351#issuecomment-4088830874
 deselect="${deselect-} --deselect=tests/test_color.py::test_data_model"
 
-%if !0%{?have_blender}
-# This test requires a boolean backend: either blender or manifold3d, which is
-# not yet packaged.
+%if !0%{?have_blender} && %{without manifold}
+# This test requires a boolean backend: either blender or manifold3d
 k="${k-}${k+ and }not test_contains_cavity"
 %endif
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-23 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-23 22:39 [rpms/python-trimesh] f44: Python bindings for manifold are now packaged Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox