From f52202228ff2f5d19ba5a74c1fcfa70346653710 Mon Sep 17 00:00:00 2001 From: Yanshu Wang Date: Tue, 7 Jul 2026 18:24:08 +0800 Subject: [PATCH 1/3] 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 0000000000..775cf3ac2c --- /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 0000000000..320410a429 --- /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/3] 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 320410a429..c813558c4b 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/3] 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 c813558c4b..5d0e4c0e41 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