Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASM version (noarch, no LinAlg solvers) of bw2calc #616

Closed
wants to merge 14 commits into from
51 changes: 51 additions & 0 deletions recipes/recipes_emscripten/bw2calc/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
context:
name: "bw2calc"
version: "2.0.dev13"

package:
name: "{{ name }}"
version: "{{ version }}"

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: fb3e8076d6048d3acda147c83534dced9568079cf9d8d8b7fb0153731a0f8d87

build:
script: "{{ PYTHON }} -m pip install . -vv"
number: 0
michaelweinold marked this conversation as resolved.
Show resolved Hide resolved

requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }}
- pip
- bw_processing
host:
- python >=3.7
- pip
- setuptools
run:
- python >=3.7
- bw_processing
- matrix_utils
- numpy <1.25.0
- pandas
- scipy
- stats_arrays

about:
home: https://github.com/brightway-lca/brightway2-calc
summary: 'The calculation engine for the Brightway2 life cycle assessment framework.'
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE.txt
dev_url: https://github.com/brightway-lca/brightway2-calc

extra:
emscripten_tests:
python:
pytest_files:
- test_import_bw2calc.py
recipe-maintainers:
- michaelweinold
- cmutel
2 changes: 2 additions & 0 deletions recipes/recipes_emscripten/bw2calc/test_import_bw2calc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_import_bw2calc():
import bw2calc