commit: 70fac9ed390c12a2fa1c9063eaeb1189dcf49a1c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 17:09:03 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 13 21:46:37 2017 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=70fac9ed
travis: Install additional (pure Python) crypto providers if necessary
Install pysha3 to provide the SHA3 routines on Python < 3.6, and install
pygost to provide a Streebog implementation.
.travis.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 7fe3c06aa..196e3520a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,14 @@ python:
- pypy
# command to install dependencies
-install: "pip install lxml"
+install:
+ - pip install lxml
+ # python3.6+ has sha3 built-in, for older versions install pysha3
+ # (except for pypy where pysha3 is broken)
+ - "[[ ${TRAVIS_PYTHON_VERSION} == 3.[6789] || ${TRAVIS_PYTHON_VERSION} ==
pypy ]] || pip install pysha3"
+ # always install pygost for Streebog
+ # (except for py3.3 which it does not support)
+ - "[[ ${TRAVIS_PYTHON_VERSION} == 3.3 ]] || pip install pygost"
script:
- printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg