Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lambda_packages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down
11 changes: 3 additions & 8 deletions lambda_packages/cryptography/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.