From f52202228ff2f5d19ba5a74c1fcfa70346653710 Mon Sep 17 00:00:00 2001 From: Yanshu Wang Date: Tue, 7 Jul 2026 18:24:08 +0800 Subject: [PATCH 1/6] add snappy-computop --- .../snappy-computop/build.sh | 8 +++ .../snappy-computop/recipe.yaml | 51 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 recipes/recipes_emscripten/snappy-computop/build.sh create mode 100644 recipes/recipes_emscripten/snappy-computop/recipe.yaml diff --git a/recipes/recipes_emscripten/snappy-computop/build.sh b/recipes/recipes_emscripten/snappy-computop/build.sh new file mode 100644 index 00000000000..775cf3ac2c0 --- /dev/null +++ b/recipes/recipes_emscripten/snappy-computop/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export SNAPPY_ALWAYS_BUILD_CYOPENGL=False + +export CFLAGS="$CFLAGS -fPIC -O3" +export CXXFLAGS="$CXXFLAGS -fPIC -O3" + +${PYTHON} -m pip install . -vv \ No newline at end of file diff --git a/recipes/recipes_emscripten/snappy-computop/recipe.yaml b/recipes/recipes_emscripten/snappy-computop/recipe.yaml new file mode 100644 index 00000000000..320410a4293 --- /dev/null +++ b/recipes/recipes_emscripten/snappy-computop/recipe.yaml @@ -0,0 +1,51 @@ +context: + name: snappy-computop + version: 3.3.2 + +package: + name: ${{ name }} + version: ${{ version }} + +source: + url: https://github.com/3-manifolds/SnapPy/archive/refs/tags/${{ version }}_as_released.tar.gz + sha256: 2ba62fd23e5ee1e75685d30fef74880959c56e0e8f808f75ba95f88a5b2004e9 + +build: + number: 0 + +requirements: + build: + - ${{ compiler('c') }} + - ${{ compiler('cxx') }} + - cross-python_emscripten-wasm32 + host: + - python + - pip + - setuptools + - wheel + - cython >=0.28 + run: + - python + - fxrays >=1.3 + - plink >=2.4.9 + - spherogram >=2.4.1 + - snappy_manifolds >=1.4 + - veering >=1.0.6 + - low_index >=1.2.1 + - tkinter-gl >=1.0 + - decorator + - packaging + - pypng + - pyx + - pickleshare + - cypari >=2.3 + +about: + homepage: https://snappy.computop.org/ + license: GPL-2.0-only + license_file: README.rst + summary: SnapPy is a package for studying the topology and geometry of 3-manifolds, with a focus on hyperbolic structures. + +extra: + recipe-maintainers: + - wangyenshu \ No newline at end of file From 1d21c3b9146817de6917c8c9f491e795fb9f97dd Mon Sep 17 00:00:00 2001 From: Yanshu Wang Date: Tue, 7 Jul 2026 18:27:12 +0800 Subject: [PATCH 2/6] add snappy-computop test --- recipes/recipes_emscripten/snappy-computop/recipe.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes/recipes_emscripten/snappy-computop/recipe.yaml b/recipes/recipes_emscripten/snappy-computop/recipe.yaml index 320410a4293..c813558c4b9 100644 --- a/recipes/recipes_emscripten/snappy-computop/recipe.yaml +++ b/recipes/recipes_emscripten/snappy-computop/recipe.yaml @@ -40,6 +40,13 @@ requirements: - pickleshare - cypari >=2.3 +tests: +- package_contents: + files: + - lib/python3.13/site-packages/snappy/SnapPy.cpython-313-wasm32-emscripten.so + - lib/python3.13/site-packages/snappy/SnapPyHP.cpython-313-wasm32-emscripten.so + - lib/python3.13/site-packages/snappy/CyOpenGL.cpython-313-wasm32-emscripten.so + about: homepage: https://snappy.computop.org/ license: GPL-2.0-only From b4740857d631ec0c1214a7a99969c312ec603ef3 Mon Sep 17 00:00:00 2001 From: wangyenshu <155622798+wangyenshu@users.noreply.github.com> Date: Tue, 7 Jul 2026 18:38:10 +0800 Subject: [PATCH 3/6] fix test --- recipes/recipes_emscripten/snappy-computop/recipe.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/recipes_emscripten/snappy-computop/recipe.yaml b/recipes/recipes_emscripten/snappy-computop/recipe.yaml index c813558c4b9..5d0e4c0e416 100644 --- a/recipes/recipes_emscripten/snappy-computop/recipe.yaml +++ b/recipes/recipes_emscripten/snappy-computop/recipe.yaml @@ -45,7 +45,6 @@ tests: files: - lib/python3.13/site-packages/snappy/SnapPy.cpython-313-wasm32-emscripten.so - lib/python3.13/site-packages/snappy/SnapPyHP.cpython-313-wasm32-emscripten.so - - lib/python3.13/site-packages/snappy/CyOpenGL.cpython-313-wasm32-emscripten.so about: homepage: https://snappy.computop.org/ @@ -55,4 +54,4 @@ about: extra: recipe-maintainers: - - wangyenshu \ No newline at end of file + - wangyenshu From d621fa1ddcf1d0634d8f39ef9923ecf9fbf1b273 Mon Sep 17 00:00:00 2001 From: wangyenshu <155622798+wangyenshu@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:22:53 +0800 Subject: [PATCH 4/6] include mpmath --- recipes/recipes_emscripten/snappy-computop/recipe.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/recipes_emscripten/snappy-computop/recipe.yaml b/recipes/recipes_emscripten/snappy-computop/recipe.yaml index 5d0e4c0e416..906ec38ceef 100644 --- a/recipes/recipes_emscripten/snappy-computop/recipe.yaml +++ b/recipes/recipes_emscripten/snappy-computop/recipe.yaml @@ -24,6 +24,7 @@ requirements: - setuptools - wheel - cython >=0.28 + - mpmath run: - python - fxrays >=1.3 From 97fe9bc8ed5642c63e26ffbd2bf085eddb6b2833 Mon Sep 17 00:00:00 2001 From: wangyenshu <155622798+wangyenshu@users.noreply.github.com> Date: Sun, 9 Aug 2026 16:51:31 -0400 Subject: [PATCH 5/6] Update build.sh --- recipes/recipes_emscripten/snappy-computop/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/recipes_emscripten/snappy-computop/build.sh b/recipes/recipes_emscripten/snappy-computop/build.sh index 775cf3ac2c0..4b625ba9292 100644 --- a/recipes/recipes_emscripten/snappy-computop/build.sh +++ b/recipes/recipes_emscripten/snappy-computop/build.sh @@ -5,4 +5,4 @@ export SNAPPY_ALWAYS_BUILD_CYOPENGL=False export CFLAGS="$CFLAGS -fPIC -O3" export CXXFLAGS="$CXXFLAGS -fPIC -O3" -${PYTHON} -m pip install . -vv \ No newline at end of file +${PYTHON} -m pip install . -vv --no-build-isolation From 688b0d14bff3e1545a034823fd23ff32bcd49a81 Mon Sep 17 00:00:00 2001 From: wangyenshu <155622798+wangyenshu@users.noreply.github.com> Date: Sun, 9 Aug 2026 16:56:18 -0400 Subject: [PATCH 6/6] Update recipe.yaml --- recipes/recipes_emscripten/snappy-computop/recipe.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/recipes_emscripten/snappy-computop/recipe.yaml b/recipes/recipes_emscripten/snappy-computop/recipe.yaml index 906ec38ceef..87cc2fba556 100644 --- a/recipes/recipes_emscripten/snappy-computop/recipe.yaml +++ b/recipes/recipes_emscripten/snappy-computop/recipe.yaml @@ -18,6 +18,7 @@ requirements: - ${{ compiler('c') }} - ${{ compiler('cxx') }} - cross-python_emscripten-wasm32 + - pip <25 host: - python - pip