Skip to content
Closed
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 @@ -72,12 +72,12 @@
},
'mysqlclient': {
'python2.7': {
'version': '1.3.12',
'path': os.path.join(PACKAGES_DIR, 'mysqlclient', 'python2.7-mysqlclient-1.3.12.tar.gz')
'version': '1.3.14',
'path': os.path.join(PACKAGES_DIR, 'mysqlclient', 'python2.7-mysqlclient-1.3.14.tar.gz')
},
'python3.6': {
'version': '1.3.12',
'path': os.path.join(PACKAGES_DIR, 'mysqlclient', 'python3.6-mysqlclient-1.3.12.tar.gz')
'version': '1.3.14',
'path': os.path.join(PACKAGES_DIR, 'mysqlclient', 'python3.6-mysqlclient-1.3.14.tar.gz')
}
},
'numpy': {
Expand Down
6 changes: 3 additions & 3 deletions lambda_packages/mysqlclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

On an machine with Amazon Linux:

`./build.sh mysqlclient 1.3.12`
`./build.sh mysqlclient 1.3.14`

On a machine with docker and access to lambci images:

`docker run --rm -v `pwd`:/app lambci/lambda:build-python2.7 bash -c "cd /app && /app/build.sh --docker --py2-only mysqlclient 1.3.12"`
`docker run --rm -v `pwd`:/app lambci/lambda:build-python2.7 bash -c "cd /app && /app/build.sh --docker --py2-only mysqlclient 1.3.14"`

`docker run --rm -v `pwd`:/app lambci/lambda:build-python3.6 bash -c "cd /app && /app/build.sh --docker --py3-only mysqlclient 1.3.12"`
`docker run --rm -v `pwd`:/app lambci/lambda:build-python3.6 bash -c "cd /app && /app/build.sh --docker --py3-only mysqlclient 1.3.14"`
7 changes: 5 additions & 2 deletions lambda_packages/mysqlclient/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ function build_package {

TMP_DIR="${PYTHON}_${PACKAGE}_${VERSION}"

if [ -d ${TMP_DIR} ]; then
rm -rf ${TMP_DIR}
fi
mkdir ${TMP_DIR}
cd ${TMP_DIR}

Expand All @@ -88,8 +91,8 @@ function build_package {

echo "install pips"
TARGET_DIR=${ENV}/packaged
echo ${PIP} install --verbose --use-wheel --no-dependencies --target ${TARGET_DIR} "${PACKAGE}==${VERSION}"
${PIP} install --verbose --use-wheel --no-dependencies --target ${TARGET_DIR} "${PACKAGE}==${VERSION}"
echo ${PIP} install --verbose --no-dependencies --target ${TARGET_DIR} "${PACKAGE}==${VERSION}"
${PIP} install --verbose --no-dependencies --target ${TARGET_DIR} "${PACKAGE}==${VERSION}"
deactivate

TARGET_DIR=${ENV}/packaged
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.