Initial import

This commit is contained in:
Guilhem Lavaux 2023-05-29 10:41:03 +02:00
commit 56a50eead3
820 changed files with 192077 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#FROM quay.io/pypa/manylinux2014_x86_64
FROM quay.io/pypa/manylinux2010_x86_64
ARG CMAKE=3.17.3
RUN yum install -y git && \
( \
git clone git://github.com/ninja-build/ninja.git && \
cd ninja && \
/opt/python/cp36-cp36m/bin/python3 ./configure.py --bootstrap && \
./ninja && cp ninja /usr/bin \
) && rm -fr ninja && yum clean all
RUN \
yum install -y wget openssl-devel && \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE}/cmake-${CMAKE}.tar.gz && \
tar zxvf cmake-${CMAKE}.tar.gz && \
( \
cd cmake-${CMAKE} && ./bootstrap && make -j4 && make install \
) && rm -fr cmake-${CMAKE}* && \
yum clean all

View file

@ -0,0 +1,32 @@
#!/bin/bash
set -e -x
# Install a system package required by our library
#yum install -y atlas-devel
yum install -y zlib-devel
ln -fs /usr/local/bin/cmake /usr/bin/cmake
ALL_PYTHON="cp36-cp36m" # cp37-cp37m 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" install -r /io/requirements.txt
"${PYBIN}/pip" wheel -vvv /io/ -w wheelhouse/
done
rm -f wheelhouse/numpy*
# 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 pyborg --no-index -f /io/wheelhouse
done

View file

@ -0,0 +1,13 @@
#!/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 pip-builder /io/builder/build-wheels.sh
podman run -ti --rm -e PLAT=manylinux2010_x86_64 -v ${d}:/io:Z pip-builder /io/builder/build-wheels.sh