2021-10-27 19:50:07 +05:00
|
|
|
set -e
|
2023-05-11 21:18:32 +05:00
|
|
|
ulimit -n 1024000 # lower open file limit, seems to affect performance
|
2021-10-27 19:50:07 +05:00
|
|
|
yum -y update
|
2024-05-08 01:48:18 +05:00
|
|
|
yum -y install ninja-build fontconfig-devel tk-devel tcl-devel libXmu-devel mesa-libGLU-devel ccache mpich-3.2-devel openmpi-devel
|
2021-10-27 19:50:07 +05:00
|
|
|
|
|
|
|
rm -rf wheelhouse
|
|
|
|
export NETGEN_CCACHE=1
|
|
|
|
|
|
|
|
/opt/python/cp39-cp39/bin/python tests/fix_auditwheel_policy.py
|
|
|
|
|
2024-05-08 01:20:49 +05:00
|
|
|
for pyversion in 312
|
2021-10-27 19:50:07 +05:00
|
|
|
do
|
|
|
|
export PYDIR="/opt/python/cp${pyversion}-cp${pyversion}/bin"
|
|
|
|
echo $PYDIR
|
2024-05-08 02:10:51 +05:00
|
|
|
$PYDIR/pip install -U pytest-check numpy wheel scikit-build pybind11-stubgen
|
|
|
|
$PYDIR/pip install -i https://pypi.anaconda.org/mpi4py/simple/ --pre mpi4py
|
2021-10-27 19:50:07 +05:00
|
|
|
|
|
|
|
rm -rf _skbuild
|
2022-09-16 18:47:14 +05:00
|
|
|
NETGEN_ARCH=avx2 $PYDIR/pip wheel .
|
2021-10-27 19:50:07 +05:00
|
|
|
auditwheel repair netgen_mesher*-cp${pyversion}-*.whl
|
|
|
|
rm netgen_mesher-*.whl
|
|
|
|
|
|
|
|
$PYDIR/pip install wheelhouse/netgen_mesher*-cp${pyversion}-*.whl
|
|
|
|
$PYDIR/python3 -c 'import netgen'
|
|
|
|
#cd ../tests/pytest
|
|
|
|
#$PYDIR/python3 -m pytest
|
|
|
|
done
|
|
|
|
|
|
|
|
$PYDIR/pip install -U twine
|
2022-02-25 20:05:36 +05:00
|
|
|
$PYDIR/twine upload wheelhouse/*manylinux*.whl
|