This commit is contained in:
Charles Leifer 2020-01-30 14:23:04 +00:00
parent 4c077cdef6
commit 030818f448
3 changed files with 7 additions and 1 deletions

View file

@ -49,12 +49,16 @@ PY36="/opt/python/cp36-cp36m/bin"
PY37="/opt/python/cp37-cp37m/bin" PY37="/opt/python/cp37-cp37m/bin"
"${PY37}/python" setup.py build_static "${PY37}/python" setup.py build_static
PY38="/opt/python/cp38-cp38/bin"
"${PY38}/python" setup.py build_static
# Replace the package name defined in setup.py so we can push this to PyPI # Replace the package name defined in setup.py so we can push this to PyPI
# without stomping on the source dist. # without stomping on the source dist.
sed -i "s|name=PACKAGE_NAME,|name='sqlcipher3-binary',|g" setup.py sed -i "s|name=PACKAGE_NAME,|name='sqlcipher3-binary',|g" setup.py
"${PY36}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse "${PY36}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
"${PY37}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse "${PY37}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
"${PY38}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
for whl in /io/wheelhouse/*.whl; do for whl in /io/wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/ auditwheel repair "$whl" -w /io/wheelhouse/

View file

@ -23,3 +23,5 @@ cp "sqlcipher/sqlite3.h" sqlcipher3/
# Create the wheels and strip symbols to produce manylinux wheels. # 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 docker run -it -v $(pwd):/io quay.io/pypa/manylinux1_x86_64 /io/_build_wheels.sh
sudo rm ./wheelhouse/*-linux_*

View file

@ -13,7 +13,7 @@ from setuptools import Extension
# If you need to change anything, it should be enough to change setup.cfg. # If you need to change anything, it should be enough to change setup.cfg.
PACKAGE_NAME = 'sqlcipher3' PACKAGE_NAME = 'sqlcipher3'
VERSION = '0.4.0' VERSION = '0.4.1'
# define sqlite sources # define sqlite sources
sources = [os.path.join('src', source) sources = [os.path.join('src', source)