From 9048ddf99d6d7fa13824d5e63d53fad0603213a8 Mon Sep 17 00:00:00 2001 From: jodhus Date: Thu, 5 Sep 2024 00:22:30 -0400 Subject: [PATCH] Hack to force detect libsndfile. --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c3ac45a..58e9a0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,11 @@ before-test = "brew install libsndfile" [[tool.cibuildwheel.overrides]] select = '*-musllinux*' -before-test = ['apk add libsndfile', 'find / | grep libsndfile'] +before-test = [ + 'apk add libsndfile', + 'PYVER=`python -c "import sys; print(\".\".join(map(str, sys.version_info[:2])))"`', + 'sed -i "192b1; b ;:1;s/_explicit_libname/\"\/usr\/lib\/libsndfile.so.1.0.37\"/g" $VIRTUAL_ENV/lib/python$PYVER/site-packages/soundfile.py', +] [tool.pytest.ini_options] minversion = '6.0'