netgen/tests/build_pip.sh

39 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2021-10-27 19:50:07 +05:00
set -e
ulimit -n 1024000 # lower open file limit, seems to affect performance
2021-10-27 19:50:07 +05:00
yum -y update
2024-09-23 19:29:24 +05:00
yum -y install ninja-build fontconfig-devel tk-devel tcl-devel libXmu-devel mesa-libGLU-devel openmpi-devel mpich-devel
2024-09-23 19:29:24 +05:00
mkdir -p /opt/openmpi/include /opt/mpich/include
cp -a /usr/include/openmpi-x86_64/* /opt/openmpi/include/
cp -a /usr/include/mpich-x86_64/* /opt/mpich/include/
2024-05-13 16:43:53 +05:00
2024-09-23 19:29:24 +05:00
curl https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/c/ccache-3.7.7-1.el8.x86_64.rpm -o ccache.rpm
dnf -y install ccache.rpm
2021-10-27 19:50:07 +05:00
rm -rf wheelhouse
export NETGEN_CCACHE=1
2024-10-16 13:26:53 +05:00
for pyversion in 313 312 311 310 39
2021-10-27 19:50:07 +05:00
do
export PYDIR="/opt/python/cp${pyversion}-cp${pyversion}/bin"
echo $PYDIR
$PYDIR/pip install requests packaging
$PYDIR/python3 ./tests/utils.py --check-pip || continue
2024-06-14 13:50:42 +05:00
$PYDIR/pip install -U pytest-check numpy wheel scikit-build pybind11-stubgen netgen-occt==7.8.1 netgen-occt-devel==7.8.1
2024-05-13 16:43:53 +05:00
$PYDIR/pip install -i https://pypi.anaconda.org/mpi4py/simple/ --pre mpi4py
2021-10-27 19:50:07 +05:00
rm -rf _skbuild
NETGEN_ARCH=avx2 $PYDIR/pip wheel .
2024-06-14 13:50:42 +05:00
mkdir -p wheelhouse
rename linux_x86_64 manylinux_2_17_x86_64.manylinux2014_x86_64 netgen_mesher*-cp${pyversion}-*.whl
mv netgen_mesher*-cp${pyversion}-*.whl wheelhouse/
2021-10-27 19:50:07 +05:00
$PYDIR/pip install wheelhouse/netgen_mesher*-cp${pyversion}-*.whl
$PYDIR/python3 -c 'import netgen'
$PYDIR/pip install -U twine
$PYDIR/twine upload --skip-existing wheelhouse/netgen_mesher*-cp${pyversion}*manylinux*.whl
2021-10-27 19:50:07 +05:00
#cd ../tests/pytest
#$PYDIR/python3 -m pytest
done