Add build scripts for creating manylinux wheels.

This commit is contained in:
Charles Leifer 2019-09-05 13:46:32 -05:00
parent 9acbaadf04
commit c99bbe0515
4 changed files with 110 additions and 0 deletions

25
build-scripts/build.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
set -e -x
# Fetch the source code for SQLCipher.
if [[ ! -d "sqlcipher" ]]; then
git clone --depth=1 git@github.com:sqlcipher/sqlcipher
cd sqlcipher/
./configure --disable-tcl --enable-tempstore=yes LDFLAGS="-lcrypto -lm"
make sqlite3.c
cd ../
fi
# Grab the sqlcipher3 source code.
if [[ ! -d "./sqlcipher3" ]]; then
git clone git@github.com:coleifer/sqlcipher3
fi
# Copy the sqlcipher source amalgamation into the pysqlite3 directory so we can
# create a self-contained extension module.
cp "sqlcipher/sqlite3.c" sqlcipher3/
cp "sqlcipher/sqlite3.h" sqlcipher3/
# Create the wheels and strip symbols to produce manylinux wheels.
docker run -it -v $(pwd):/io quay.io/pypa/manylinux1_x86_64 /io/_build_wheels.sh