common/wrapper: python*-config: answer --includes

We haven't run into trouble with this because most configure script
check if $PYTHON-config exist,
thus force packager uses /usr/bin/python{,3}
This commit is contained in:
Đoàn Trần Công Danh 2020-07-04 21:59:21 +07:00
parent e283a9a83d
commit 74f0186fd9
1 changed files with 5 additions and 4 deletions

View File

@ -70,10 +70,11 @@ python_wrapper() {
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
#!/bin/sh
if [ "\$1" = "--includes" ]; then
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}"
fi
exit \$?
case "\$1" in
--includes|--cflags)
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}" ;;
esac
exit 0
_EOF
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
}