Skip to content

Commit 5f2cfaa

Browse files
committed
use old M2Crypto with old(er) pythons
looks like M2Crypto 0.37.0 broke a lot of things so use something older
1 parent 0815c0e commit 5f2cfaa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,15 @@ before_install:
171171
install:
172172
- if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt; else travis_retry pip install -r build-requirements.txt; fi
173173
- if [[ $TACKPY == 'true' ]]; then travis_retry pip install tackpy; fi
174-
- if [[ $M2CRYPTO == 'true' ]]; then travis_retry pip install --pre m2crypto; fi
174+
- |
175+
if [[ $M2CRYPTO == 'true' ]]; then
176+
# it looks like 0.37.0 broke compatibility with old OpenSSL so try using old version
177+
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.5 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then
178+
travis_retry pip install 'm2crypto<0.37';
179+
else
180+
travis_retry pip install --pre m2crypto;
181+
fi
182+
fi
175183
- if [[ $PYCRYPTO == 'true' ]]; then travis_retry pip install pycrypto; fi
176184
- if [[ $PYCRYPTODOME == 'true' ]]; then travis_retry pip install pycryptodome; fi
177185
- if [[ $GMPY == 'true' ]]; then travis_retry pip install gmpy; fi

0 commit comments

Comments
 (0)