diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d00dd44b..e7ab6cbbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,7 +109,7 @@ jobs: run: | curl https://sh.rustup.rs -sSf | sh -s -- -y brew install ninja - pip install numpy pybind11==2.6.2 wheel + pip install numpy pybind11==2.6.2 wheel delocate cd ${{ github.workspace }}/concrete/concrete-ffi RUSTFLAGS="-C target-cpu=native" cargo build --release @@ -123,6 +123,7 @@ jobs: export CONCRETE_PROJECT=${{ github.workspace }}/concrete make Python3_EXECUTABLE=`which python` python-bindings pip wheel --no-deps -w ${{ github.workspace }}/wheels . + delocate-wheel -v `find ${{ github.workspace }}/wheels/ -name *macosx*.whl` echo "::set-output name=ASSET_NAME::`find ${{ github.workspace }}/wheels/ -name *macosx*.whl | rev |cut -d "/" -f 1 |rev `" - name: Upload Python Package diff --git a/compiler/setup.py b/compiler/setup.py index edcee428c..a10e1b7b0 100644 --- a/compiler/setup.py +++ b/compiler/setup.py @@ -67,7 +67,7 @@ setuptools.setup( install_requires=["numpy", "PyYAML"], package_dir={"": build_dir() + "tools/zamalang/python_packages/zamalang_core"}, include_package_data=True, - package_data={"": ["*.so"]}, + package_data={"": ["*.so", "*.dylib"]}, classifiers=[ "Programming Language :: C++", "Programming Language :: Python :: 3",