Skip to content

Commit

Permalink
Try cross-compiling for arm64 on osx
Browse files Browse the repository at this point in the history
Something like this should be possible...

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 18, 2023
1 parent 55b78d4 commit 7a25947
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 9 additions & 0 deletions conda.recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ python:
- 3.9
- 3.10
- 3.11
c_compiler:
- gcc # [linux]
- clang # [osx]
- vs2019 # [win]
target_platform:
- linux-64 # [linux]
- osx-64 # [osx]
- osx-arm64 # [osx]
- win-64 # [win]
16 changes: 12 additions & 4 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ build:

requirements:
build:
# Numba is only here to ensure the numpy version is compatible
- numba
- numpy >=1.20
# This is so that we can build cross-platform for osx-arm64
- {{ compiler('c') }}
- python {{ python }} # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy >=1.25 # [build_platform != target_platform]
# Numba is only here to make sure we use a version of numpy that is compatible
- numba # [build_platform != target_platform]
host:
- python {{ python }}
- numpy >=1.25
- setuptools
- setuptools_scm
# Numba is only here to make sure we use a version of numpy that is compatible
- numba

run:
- appdirs
Expand All @@ -30,7 +38,7 @@ requirements:
- h5py
- lmfit
- numba
- numpy >=1.20
- {{ pin_compatible('numpy') }}
- psutil
- pycifrw
- python
Expand Down

0 comments on commit 7a25947

Please sign in to comment.