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

View file

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