Skip to content

Commit 135e071

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 d8a1726 commit 135e071

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ before_install:
135135
install:
136136
- 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
137137
- if [[ $TACKPY == 'true' ]]; then travis_retry pip install tackpy; fi
138-
- if [[ $M2CRYPTO == 'true' ]]; then travis_retry pip install --pre m2crypto; fi
138+
- |
139+
if [[ $M2CRYPTO == 'true' ]]; then
140+
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.4 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.5 ]] || [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then
141+
travis_retry pip install 'm2crypto<0.37';
142+
else
143+
travis_retry pip install --pre m2crypto;
144+
fi
145+
fi
139146
- if [[ $PYCRYPTO == 'true' ]]; then travis_retry pip install pycrypto; fi
140147
- if [[ $PYCRYPTODOME == 'true' ]]; then travis_retry pip install pycryptodome; fi
141148
- if [[ $GMPY == 'true' ]]; then travis_retry pip install gmpy; fi

0 commit comments

Comments
 (0)