@@ -179,26 +179,26 @@ repair-wheel-command = [
179179
180180[tool .cibuildwheel .pyodide ]
181181before-all = " bin/cibw_before_all_pyodide.sh"
182- before-build = " pip install wheel"
182+ before-build = " pip install wheel auditwheel-emscripten "
183183
184184# This needs to be kept in sync with the Pyodide row in
185185# .github/workflows/buildwheel.yml. The Pyodide version pins both an
186186# Emscripten version and a CPython minor version. The command
187187# `pyodide xbuildenv search --all` shows the compatible combinations.
188188pyodide-version = " 0.28.2"
189189
190- # GMP, MPFR, and FLINT are built as static libraries for Pyodide.
190+ # GMP, MPFR, and FLINT are built as shared libraries for Pyodide.
191191repair-wheel-command = [
192192""" python bin/cibw_repair_wheel_licenses.py "{wheel}" \
193193 --license LGPL-3.0-or-later \
194- --license-file 'wasm-library-dir/src/gmp-*/COPYING:python-flint .libs/gmp-*/COPYING' \
195- --license-file 'wasm-library-dir/src/gmp-*/COPYING.LESSERv3:python-flint .libs/gmp-*/COPYING.LESSERv3' \
196- --license-file 'wasm-library-dir/src/mpfr-*/COPYING:python-flint .libs/mpfr-*/COPYING' \
197- --license-file 'wasm-library-dir/src/mpfr-*/COPYING.LESSER:python-flint .libs/mpfr-*/COPYING.LESSER' \
198- --license-file 'wasm-library-dir/src/flint-*/COPYING:python-flint .libs/flint-*/COPYING' \
199- --license-file 'wasm-library-dir/src/flint-*/COPYING.LESSER:python-flint .libs/flint-*/COPYING.LESSER' \
194+ --license-file 'wasm-library-dir/src/gmp-*/COPYING:python_flint .libs/gmp-*/COPYING' \
195+ --license-file 'wasm-library-dir/src/gmp-*/COPYING.LESSERv3:python_flint .libs/gmp-*/COPYING.LESSERv3' \
196+ --license-file 'wasm-library-dir/src/mpfr-*/COPYING:python_flint .libs/mpfr-*/COPYING' \
197+ --license-file 'wasm-library-dir/src/mpfr-*/COPYING.LESSER:python_flint .libs/mpfr-*/COPYING.LESSER' \
198+ --license-file 'wasm-library-dir/src/flint-*/COPYING:python_flint .libs/flint-*/COPYING' \
199+ --license-file 'wasm-library-dir/src/flint-*/COPYING.LESSER:python_flint .libs/flint-*/COPYING.LESSER' \
200200""" ,
201- " cp \" {wheel} \" \" {dest_dir} \" " ,
201+ " pyodide auditwheel repair --libdir wasm-library-dir/lib --output-dir {dest_dir} {wheel} " ,
202202]
203203
204204[tool .cibuildwheel .pyodide .environment ]
0 commit comments