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