From 1e24547634e2c0126a6b27edbfdaa5a107265b6e Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 7 Oct 2014 13:52:28 +0200 Subject: [PATCH] python: remove references to cross toolchain. --- srcpkgs/python/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/python/template b/srcpkgs/python/template index d6ff157f6df..5aa2d482227 100644 --- a/srcpkgs/python/template +++ b/srcpkgs/python/template @@ -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() {