From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-979459-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 64D141396D9 for <garchives@archives.gentoo.org>; Fri, 20 Oct 2017 23:44:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8A862BC017; Fri, 20 Oct 2017 23:44:15 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 94B762BC017 for <gentoo-commits@lists.gentoo.org>; Fri, 20 Oct 2017 23:44:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A007333BEB4 for <gentoo-commits@lists.gentoo.org>; Fri, 20 Oct 2017 23:44:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C2AD826 for <gentoo-commits@lists.gentoo.org>; Fri, 20 Oct 2017 23:44:13 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1508543048.c3e8a0f2587f714081e54509097d905be1baa9dd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyblake2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyblake2/pyblake2-0.9.3.ebuild X-VCS-Directories: dev-python/pyblake2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c3e8a0f2587f714081e54509097d905be1baa9dd X-VCS-Branch: master Date: Fri, 20 Oct 2017 23:44:13 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 395714f9-910e-44e3-8605-3c58183b3d0a X-Archives-Hash: 524800d7b0610abf2e1106c3f81508ee commit: c3e8a0f2587f714081e54509097d905be1baa9dd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Oct 20 23:33:56 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Oct 20 23:44:08 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3e8a0f2 dev-python/pyblake2: Default to faster REGS variant dev-python/pyblake2/pyblake2-0.9.3.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev-python/pyblake2/pyblake2-0.9.3.ebuild b/dev-python/pyblake2/pyblake2-0.9.3.ebuild index 37d5457bb6d..79f80083bcb 100644 --- a/dev-python/pyblake2/pyblake2-0.9.3.ebuild +++ b/dev-python/pyblake2/pyblake2-0.9.3.ebuild @@ -15,6 +15,17 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" +python_prepare_all() { + local impl=REGS + # note: SSE2 is 2.5x slower than pure REGS... + # TODO: test other variants on some capable hardware + + # uncomment the implementation of choice + sed -i -e "/BLAKE2_COMPRESS_${impl}/s:^#::" setup.py || die + + distutils-r1_python_prepare_all +} + python_test() { "${EPYTHON}" test/test.py || die "Tests fail with ${EPYTHON}" }