diff --git a/recipe/build.sh b/recipe/build.sh index 6db6b9e..52c1abe 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -7,6 +7,10 @@ if [[ "$mpi" != "nompi" ]]; then export HDF5_MPI="ON" fi +if [[ ${target_platform} == "osx-arm64" ]]; then + export CIBW_ARCHS_MACOS=arm64 +fi + # tell setup.py to not 'pip install' exact package requirements export H5PY_SETUP_REQUIRES="0" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 02c560e..977d679 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -16,8 +16,6 @@ package: source: url: https://github.com/h5py/h5py/archive/{{ version }}.tar.gz sha256: 71ee0e0a25d6acc5e99ff13c287cae006604f6054dd9b60c352d0216e5d6b6f4 - patches: - - osx-arm64.diff # [osx and arm64] build: skip: true # [py<=36] diff --git a/recipe/osx-arm64.diff b/recipe/osx-arm64.diff deleted file mode 100644 index 201d5c7..0000000 --- a/recipe/osx-arm64.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- setup_build.py 2020-12-31 10:58:00.000000000 -0800 -+++ setup_build.py 2020-12-31 10:58:17.000000000 -0800 -@@ -158,7 +158,7 @@ - s %= { - 'mpi': bool(config.mpi), - 'version': config.hdf5_version, -- 'complex256_support': hasattr(numpy, 'complex256'), -+ 'complex256_support': False, - 'numpy_version': numpy.__version__, - 'cython_version': cython_version, - }