common/build-helper/numpy.sh: write meson cross file when needed
This commit is contained in:
parent
bed90b356e
commit
99d8d3e26f
2 changed files with 15 additions and 0 deletions
|
@ -34,4 +34,14 @@ if [ "$CROSS_BUILD" ]; then
|
|||
ln -sf "${_gfortran}" "${XBPS_WRAPPERDIR}/gfortran"
|
||||
fi
|
||||
unset _gfortran
|
||||
|
||||
# Write a secondary meson cross file for numpy configuration
|
||||
if [[ "${build_helper}" = *meson* ]]; then
|
||||
mkdir -p "${XBPS_WRAPPERDIR}/meson"
|
||||
cat > "${XBPS_WRAPPERDIR}/meson/xbps_numpy.cross" <<-EOF
|
||||
[properties]
|
||||
numpy-include-dir = '${XBPS_CROSS_BASE}/${py3_sitelib}/numpy/core/include'
|
||||
pythran-include-dir = '${XBPS_CROSS_BASE}/${py3_sitelib}/pythran'
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue