Add script and metadata to build binary packages.
This commit is contained in:
parent
f35d0cc694
commit
6bc0b80e39
5 changed files with 718 additions and 1 deletions
27
builder/build-wheels.sh
Executable file
27
builder/build-wheels.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
# Install a system package required by our library
|
||||
#yum install -y atlas-devel
|
||||
yum install -y cmake3
|
||||
|
||||
|
||||
ALL_PYTHON=cp38-cp38
|
||||
|
||||
# Compile wheels
|
||||
for pkg in $ALL_PYTHON; do
|
||||
PYBIN=/opt/python/${pkg}/bin
|
||||
# "${PYBIN}/pip" install -r /io/dev-requirements.txt
|
||||
"${PYBIN}/pip" wheel -v /io/ -w wheelhouse/
|
||||
done
|
||||
|
||||
# Bundle external shared libraries into the wheels
|
||||
for whl in wheelhouse/*.whl; do
|
||||
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
|
||||
done
|
||||
|
||||
# Install packages and test
|
||||
for pkg in $ALL_PYTHON; do
|
||||
PYBIN=/opt/python/${pkg}/bin
|
||||
"${PYBIN}/pip" install cosmotool --no-index -f /io/wheelhouse
|
||||
done
|
12
builder/start.sh
Executable file
12
builder/start.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
d=$(pwd)
|
||||
if test x"$(basename $d)" = xbuilder; then
|
||||
d=${d}/../
|
||||
fi
|
||||
if ! [ -e ${d}/setup.py ] ; then
|
||||
echo "Unknown directory. Please move to the root of cosmotool source tree."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
podman run -ti --rm -e PLAT=manylinux2014_x86_64 -v ${d}:/io:Z quay.io/pypa/manylinux2014_x86_64 /io/builder/build-wheels.sh
|
Loading…
Add table
Add a link
Reference in a new issue