python: remove references to cross toolchain.

This commit is contained in:
Christian Neukirchen 2014-10-07 13:52:28 +02:00
parent c9c9bbe475
commit 1e24547634
1 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#
pkgname=python
version=2.7.8
revision=5
revision=6
wrksrc="Python-${version}"
hostmakedepends="pkg-config"
makedepends="
@ -71,6 +71,12 @@ post_install() {
# Remove test module and tests that fail to be byte-compiled.
rm -r ${DESTDIR}/usr/lib/python2.7/test
rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
if [ "$CROSS_BUILD" ]; then
# Remove references to cross toolchain.
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
fi
}
python-devel_package() {