diff --git a/lambda_packages/__init__.py b/lambda_packages/__init__.py index 525d2c2..7ed50b7 100644 --- a/lambda_packages/__init__.py +++ b/lambda_packages/__init__.py @@ -18,12 +18,12 @@ }, 'cryptography': { 'python2.7': { - 'version': '2.3.1', - 'path': os.path.join(PACKAGES_DIR, 'cryptography', 'python2.7-cryptography-2.3.1.tar.gz') + 'version': '2.7', + 'path': os.path.join(PACKAGES_DIR, 'cryptography', 'python2.7-cryptography-2.7.tar.gz') }, 'python3.6': { - 'version': '2.3.1', - 'path': os.path.join(PACKAGES_DIR, 'cryptography', 'python3.6-cryptography-2.3.1.tar.gz') + 'version': '2.7', + 'path': os.path.join(PACKAGES_DIR, 'cryptography', 'python3.6-cryptography-2.7.tar.gz') } }, 'cv2': { diff --git a/lambda_packages/cryptography/build.sh b/lambda_packages/cryptography/build.sh index 27e15c2..ab41ca2 100755 --- a/lambda_packages/cryptography/build.sh +++ b/lambda_packages/cryptography/build.sh @@ -70,17 +70,12 @@ function build_package { ${SUDO} yum update -y ${SUDO} yum groupinstall -y "Development Tools" ${SUDO} yum install -y libffi libffi-devel openssl openssl-devel - if [ "${VIRTUALENV}" == "virtualenv" ]; then - ${SUDO} ${PIP} install virtualenv - fi - - echo "make virtualenv" + ENV="env-${PYTHON}-${PACKAGE}-${VERSION}" - echo ${VIRTUALENV} "${ENV}" - ${VIRTUALENV} "${ENV}" + echo "make ${ENV}" + virtualenv "${ENV}" --python=${PYTHON} echo "activate env in `pwd`" - echo source "${ENV}/bin/activate" source "${ENV}/bin/activate" # https://github.com/pypa/pip/issues/3056 diff --git a/lambda_packages/cryptography/python2.7-cryptography-2.3.1.tar.gz b/lambda_packages/cryptography/python2.7-cryptography-2.3.1.tar.gz deleted file mode 100644 index 7e72b26..0000000 Binary files a/lambda_packages/cryptography/python2.7-cryptography-2.3.1.tar.gz and /dev/null differ diff --git a/lambda_packages/cryptography/python2.7-cryptography-2.7.tar.gz b/lambda_packages/cryptography/python2.7-cryptography-2.7.tar.gz new file mode 100644 index 0000000..50c6f74 Binary files /dev/null and b/lambda_packages/cryptography/python2.7-cryptography-2.7.tar.gz differ diff --git a/lambda_packages/cryptography/python3.6-cryptography-2.3.1.tar.gz b/lambda_packages/cryptography/python3.6-cryptography-2.3.1.tar.gz deleted file mode 100644 index e8b5667..0000000 Binary files a/lambda_packages/cryptography/python3.6-cryptography-2.3.1.tar.gz and /dev/null differ diff --git a/lambda_packages/cryptography/python3.6-cryptography-2.7.tar.gz b/lambda_packages/cryptography/python3.6-cryptography-2.7.tar.gz new file mode 100644 index 0000000..54dec38 Binary files /dev/null and b/lambda_packages/cryptography/python3.6-cryptography-2.7.tar.gz differ