diff --git a/srcpkgs/python3.4/template b/srcpkgs/python3.4/template index ed8224beba8..f6589d5e473 100644 --- a/srcpkgs/python3.4/template +++ b/srcpkgs/python3.4/template @@ -60,6 +60,10 @@ do_install() { ln -sf ../../libpython${version%.*}m.so \ ${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m/libpython${version%.*}m.so + + # Remove test module and tests that fail to be byte-compiled. + rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test + rm -rf ${DESTDIR}/usr/lib/python${version%.*}/lib2to3/tests } python3.4-devel_package() {