RS-Tile-Creator / lib /build-linux-wheels.sh
JunchuanYu's picture
Upload 5 files
3e8ed69
raw
history blame
536 Bytes
#!/bin/bash
set -e
GDAL_BUILD_PATH=/src/gdal-2.4.4/swig/python
ORIGINAL_PATH=$PATH
UNREPAIRED_WHEELS=/tmp/wheels
# Enable devtoolset-2 for C++11
source /opt/rh/devtoolset-2/enable
# Compile wheels
pushd ${GDAL_BUILD_PATH}
for PYBIN in /opt/python/*/bin; do
export PATH=${PYBIN}:$ORIGINAL_PATH
rm -rf build
CFLAGS="-std=c++11" python setup.py bdist_wheel -d ${UNREPAIRED_WHEELS} || true
done
popd
# Bundle GEOS into the wheels
for whl in ${UNREPAIRED_WHEELS}/*.whl; do
auditwheel repair ${whl} -w wheels || true
done