netgen/tests/build_pip_mac.sh

15 lines
466 B
Bash
Raw Normal View History

2021-10-27 19:50:07 +05:00
set -e
rm -rf _skbuild dist
export PATH=/Applications/CMake.app/Contents/bin:$PATH
export NETGEN_CCACHE=1
export PYDIR=/Library/Frameworks/Python.framework/Versions/$1/bin
$PYDIR/python3 --version
2022-08-08 12:35:45 +05:00
$PYDIR/pip3 install --user numpy twine scikit-build wheel pybind11-stubgen
2021-10-27 19:50:07 +05:00
export CMAKE_OSX_ARCHITECTURES='arm64;x86_64'
export NETGEN_ARCH='avx2'
$PYDIR/python3 setup.py bdist_wheel --plat-name macosx-10.15-universal2 -j10
2022-02-25 20:05:36 +05:00
$PYDIR/python3 -m twine upload dist/*.whl