Skip to content

Commit

Permalink
Add script to install cryptography to the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
piraz committed Feb 20, 2021
1 parent d97c800 commit 23d0cec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python:
install:
- "pip install -r requirements/basic.txt"
- "pip install -r requirements/tests.txt"
- ./scripts/install_cryptography.sh
- "go get -u github.com/letsencrypt/pebble/..."
- |
(
Expand Down
14 changes: 14 additions & 0 deletions scripts/install_cryptography.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

export PYTHONPATH=$PYTHONPATH:.

PYTHON_VERSION=`python -c 'import sys; print(sys.version_info.minor)'`

if [ $PYTHON_VERSION -eq 5 ]; then
pip install -r requirements/cryptography_legacy.txt;
exit;
else
pip install -r requirements/cryptography.txt;
exit;
fi
exit 0;

0 comments on commit 23d0cec

Please sign in to comment.