Spaces:
Sleeping
Sleeping
File size: 536 Bytes
3e8ed69 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/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
|