From ace90a47416b74f0fcfc34b5da3fe8ac6d03609d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 19 Jul 2026 17:26:25 -0700 Subject: [PATCH 1/2] recipes/recipes_emscripten/mathics3: New --- .../recipes_emscripten/mathics3/recipe.yaml | 83 +++++++++++++++++++ .../mathics3/test_import_mathics.py | 5 ++ 2 files changed, 88 insertions(+) create mode 100644 recipes/recipes_emscripten/mathics3/recipe.yaml create mode 100644 recipes/recipes_emscripten/mathics3/test_import_mathics.py diff --git a/recipes/recipes_emscripten/mathics3/recipe.yaml b/recipes/recipes_emscripten/mathics3/recipe.yaml new file mode 100644 index 0000000000..4be4d28cd4 --- /dev/null +++ b/recipes/recipes_emscripten/mathics3/recipe.yaml @@ -0,0 +1,83 @@ +context: + version: 10.0.1 + +package: + name: mathics3 + version: ${{ version }} + +source: +- url: https://files.pythonhosted.org/packages/source/m/mathics3/mathics3-${{ version }}.tar.gz + sha256: fbf153b110245fbfa4e7f4098f13c86e8d616f986b805ede80d3051b400ddd94 + +build: + number: 0 + script: ${{ PYTHON }} -m pip install . + +requirements: + build: + - python + - cross-python_${{ target_platform }} + - ${{ compiler('c') }} + - pip + - cython + - setuptools + - wheel + host: + - python + - mathics3-scanner + - packaging + run: + - python + - mathics3-scanner + - mpmath + - numpy + - palettable + - pillow + - pint + - python-dateutil + - pympler + - requests + - scipy + - setuptools + - timed-threads + - sympy + # - pexpect # extra == "dev" + # - pytest # extra == "dev" + # - ipywidgets # extra == "full" + # - llvmlite # extra == "full" + # - lxml # extra == "full" + # - psutil # extra == "full" + # - pyocr # extra == "full" + # - scikit-image >=0.17 # extra == "full" + # - unidecode # extra == "full" + # - wordcloud >=1.9.3 # extra == "full" + # - cython # extra == "cython" + +tests: +- script: pytester + files: + recipe: + - test_import_mathics.py + requirements: + build: + - pytester + run: + - pytester-run + - pexpect + +about: + summary: 'A general-purpose computer algebra system.' + description: | + Core of Mathics3, the open-source Mathematica, a general-purpose computer algebra system. + license: GPL-3.0-or-later + license_file: + - COPYING.txt + - AUTHORS.txt + +extra: + emscripten_tests: + python: + pytest_files: + - test_import_mathics.py + recipe-maintainers: + - mkoeppe diff --git a/recipes/recipes_emscripten/mathics3/test_import_mathics.py b/recipes/recipes_emscripten/mathics3/test_import_mathics.py new file mode 100644 index 0000000000..787178908f --- /dev/null +++ b/recipes/recipes_emscripten/mathics3/test_import_mathics.py @@ -0,0 +1,5 @@ +import pytest + + +def test_import_mathics(): + import mathics From 9cde197ccd99c95208f42400a66718cb718bf041 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 19 Jul 2026 17:49:15 -0700 Subject: [PATCH 2/2] recipes/recipes_emscripten/mathics3/recipe.yaml: Set USE_CYTHON=True --- recipes/recipes_emscripten/mathics3/recipe.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/recipes_emscripten/mathics3/recipe.yaml b/recipes/recipes_emscripten/mathics3/recipe.yaml index 4be4d28cd4..cafca7a461 100644 --- a/recipes/recipes_emscripten/mathics3/recipe.yaml +++ b/recipes/recipes_emscripten/mathics3/recipe.yaml @@ -11,7 +11,9 @@ source: build: number: 0 - script: ${{ PYTHON }} -m pip install . + script: | + export USE_CYTHON=True + ${{ PYTHON }} -m pip install . requirements: build: