diff --git a/conda.recipe/conda_build_config.yaml b/conda.recipe/conda_build_config.yaml index 77f0eec0a..dd5aacfac 100644 --- a/conda.recipe/conda_build_config.yaml +++ b/conda.recipe/conda_build_config.yaml @@ -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 and x86_64] + - osx-arm64 # [osx and arm64] + - win-64 # [win] diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 229760264..0a8509bfa 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -13,10 +13,17 @@ build: requirements: build: + # 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] + - numba # [build_platform != target_platform] + - numpy # [build_platform != target_platform] + host: + - python {{ python }} # Numba is only here to ensure the numpy version is compatible - numba - - numpy >=1.20 - - python {{ python }} + - numpy - setuptools - setuptools_scm