netgen/tests/build_pip.sh

34 lines
934 B
Bash
Raw Normal View History

2021-10-27 19:50:07 +05:00
set -e
yum -y update
yum -y install ninja-build fontconfig-devel tk-devel tcl-devel libXmu-devel mesa-libGLU-devel ccache
rm -rf wheelhouse
export NETGEN_CCACHE=1
/opt/python/cp39-cp39/bin/python tests/fix_auditwheel_policy.py
for pyversion in 38 39 310
do
export PYDIR="/opt/python/cp${pyversion}-cp${pyversion}/bin"
echo $PYDIR
$PYDIR/pip install -U pytest-check numpy wheel scikit-build
rm -rf _skbuild
$PYDIR/pip wheel .
2021-10-27 19:50:07 +05:00
auditwheel repair netgen_mesher*-cp${pyversion}-*.whl
rm netgen_mesher-*.whl
2021-11-08 22:07:04 +05:00
rm -rf _skbuild
NETGEN_ARCH=avx2 $PYDIR/pip wheel .
2021-11-08 22:07:04 +05:00
auditwheel repair netgen_mesher_avx2*-cp${pyversion}-*.whl
rm netgen_mesher_avx2-*.whl
2021-10-27 19:50:07 +05:00
$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