dev-python/pyblake2: Default to faster REGS variant

This commit is contained in:
Michał Górny
2017-10-21 01:33:56 +02:00
parent ad987d5e1c
commit c3e8a0f258

View File

@@ -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}"
}