@@ -47,13 +47,24 @@ jobs:
4747 conda config --show-sources
4848 conda list --show-channel-urls
4949
50+ - name : Meson args - use active Python include/lib (Ubuntu)
51+ if : startsWith(matrix.platform, 'ubuntu')
52+ run : |
53+ PY_INC=$(python -c "import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))")
54+ echo "PY_INC=$PY_INC" >> $GITHUB_ENV
55+ echo "MESON_SETUP_ARGS=-Dc_args=-I${PY_INC} -Dc_link_args=-L${CONDA_PREFIX}/lib" >> $GITHUB_ENV
56+
5057 - name : Install numcodecs
5158 run : |
5259 # TODO: Remove this conditional when pcodec supports Python 3.14
5360 if [[ "${{ matrix.python-version }}" == "3.14" ]]; then
54- python -m pip install -v ".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]"
61+ python -m pip install -v \
62+ --config-settings="setup-args="${MESON_SETUP_ARGS}" \
63+ ".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]"
5564 else
56- python -m pip install -v ".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]"
65+ python -m pip install -v \
66+ --config-settings="setup-args="${MESON_SETUP_ARGS}" \
67+ ".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]"
5768 fi
5869
5970 - name : List installed packages
0 commit comments