fix(python): copy dynamic library into macos wheel

This commit is contained in:
youben11
2021-12-15 13:31:07 +01:00
committed by Ayoub Benaissa
parent b812f6f7f2
commit 319cc3fd28
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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",