diff --git a/integration_tests/recipes/README.md b/integration_tests/recipes/README.md index e23f0870..395adf04 100644 --- a/integration_tests/recipes/README.md +++ b/integration_tests/recipes/README.md @@ -3,6 +3,7 @@ This directory contains a few curated recipes to test the build process of pyodi ### List of recipes and their purpose - numpy: The most popular and widely used library in the scientific computing community. +- pywavelets: a library with C and Cython extensions that uses the NumPy-C API. - orjson: Tests rust extension modules. - zlib: Tests static libraries. - geos: Tests shared libraries. diff --git a/integration_tests/recipes/pywavelets/meta.yaml b/integration_tests/recipes/pywavelets/meta.yaml new file mode 100644 index 00000000..70b69ba9 --- /dev/null +++ b/integration_tests/recipes/pywavelets/meta.yaml @@ -0,0 +1,18 @@ +package: + name: pywavelets + version: 1.8.0 + top-level: + - pywt +source: + sha256: f3800245754840adc143cbc29534a1b8fc4b8cff6e9d403326bd52b7bb5c35aa + url: https://files.pythonhosted.org/packages/48/45/bfaaab38545a33a9f06c61211fc3bea2e23e8a8e00fedeb8e57feda722ff/pywavelets-1.8.0.tar.gz +requirements: + host: + - numpy + run: + - numpy +about: + home: https://github.com/PyWavelets/pywt + PyPI: https://pypi.org/project/pywavelets + summary: PyWavelets, wavelet transform module + license: MIT diff --git a/pyodide_build/pypabuild.py b/pyodide_build/pypabuild.py index 3a639722..17105057 100644 --- a/pyodide_build/pypabuild.py +++ b/pyodide_build/pypabuild.py @@ -34,6 +34,7 @@ AVOIDED_REQUIREMENTS = [ # mesonpy installs patchelf in linux platform but we don't want it. "patchelf", + "oldest-supported-numpy", ] # corresponding env variables for symlinks @@ -122,7 +123,7 @@ def remove_avoided_requirements( for reqstr in list(requires): req = Requirement(reqstr) for avoid_name in set(avoided_requirements): - if avoid_name in req.name.lower(): + if avoid_name == req.name.lower(): requires.remove(reqstr) return requires