mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
15 lines
466 B
Bash
Executable File
15 lines
466 B
Bash
Executable File
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
|
|
$PYDIR/pip3 install --user numpy twine scikit-build wheel pybind11-stubgen
|
|
|
|
export CMAKE_OSX_ARCHITECTURES='arm64;x86_64'
|
|
export NETGEN_ARCH='avx2'
|
|
$PYDIR/python3 setup.py bdist_wheel --plat-name macosx-10.15-universal2 -j10
|
|
$PYDIR/python3 -m twine upload dist/*.whl
|