Skip to content

Commit

Permalink
Switch to manylinux2014, build 3.12 wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Oct 5, 2023
1 parent 8381b0f commit 162e967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build-scripts/_build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ PY310="/opt/python/cp310-cp310/bin"
PY311="/opt/python/cp311-cp311/bin"
"${PY311}/python" setup.py build_static

PY312="/opt/python/cp312-cp312/bin"
"${PY312}/python" setup.py build_static

sed -i "s|name=PACKAGE_NAME|name='pysqlite3-binary'|g" setup.py

"${PY36}/pip" wheel /io/pysqlite3 -w /io/wheelhouse
Expand All @@ -32,6 +35,7 @@ sed -i "s|name=PACKAGE_NAME|name='pysqlite3-binary'|g" setup.py
"${PY39}/pip" wheel /io/pysqlite3 -w /io/wheelhouse
"${PY310}/pip" wheel /io/pysqlite3 -w /io/wheelhouse
"${PY311}/pip" wheel /io/pysqlite3 -w /io/wheelhouse
"${PY312}/pip" wheel /io/pysqlite3 -w /io/wheelhouse

for whl in /io/wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cp "sqlite/sqlite3.c" pysqlite3/
cp "sqlite/sqlite3.h" pysqlite3/

# Create the wheels and strip symbols to produce manylinux wheels.
docker run -it -v $(pwd):/io quay.io/pypa/manylinux_2_24_x86_64 /io/_build_wheels.sh
docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /io/_build_wheels.sh

# Remove un-stripped wheels.
sudo rm ./wheelhouse/*-linux_*

0 comments on commit 162e967

Please sign in to comment.