2021-10-27 19:50:07 +05:00
|
|
|
set -e
|
2024-05-13 16:43:53 +05:00
|
|
|
|
2021-10-27 19:50:07 +05:00
|
|
|
rm -rf _skbuild dist
|
|
|
|
|
2023-10-10 20:15:01 +05:00
|
|
|
export PYDIR=/Library/Frameworks/Python.framework/Versions/$1/bin
|
|
|
|
export PATH=$PYDIR:/Applications/CMake.app/Contents/bin:$PATH
|
2021-10-27 19:50:07 +05:00
|
|
|
export NETGEN_CCACHE=1
|
|
|
|
|
|
|
|
$PYDIR/python3 --version
|
2024-06-14 13:50:42 +05:00
|
|
|
$PYDIR/python3 -m pip install --user numpy twine scikit-build wheel pybind11-stubgen
|
|
|
|
$PYDIR/python3 -m pip install --user -U netgen-occt==7.8.1 netgen-occt-devel==7.8.1
|
2021-10-27 19:50:07 +05:00
|
|
|
|
|
|
|
export CMAKE_OSX_ARCHITECTURES='arm64;x86_64'
|
2022-09-16 18:47:14 +05:00
|
|
|
export NETGEN_ARCH='avx2'
|
2021-11-04 17:03:38 +05:00
|
|
|
$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
|