From 7316b703cf191f3abb773b4a40a123049982f953 Mon Sep 17 00:00:00 2001 From: JM Rohwer Date: Fri, 10 May 2024 14:51:01 +0200 Subject: [PATCH] add conda build files for macOS arm64 --- packaging/cibuildwheel/macos_arm64.toml | 1 - .../conda-macos-arm64/conda_build_config.yaml | 13 +++++ packaging/conda-macos-arm64/meta.yaml | 52 +++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 packaging/conda-macos-arm64/conda_build_config.yaml create mode 100644 packaging/conda-macos-arm64/meta.yaml diff --git a/packaging/cibuildwheel/macos_arm64.toml b/packaging/cibuildwheel/macos_arm64.toml index 703eb34..ed2fa8c 100644 --- a/packaging/cibuildwheel/macos_arm64.toml +++ b/packaging/cibuildwheel/macos_arm64.toml @@ -4,4 +4,3 @@ build-verbosity = "3" test-command = "python -s -c \"import pysces; pysces.test(3)\"" build-frontend="pip" archs = "arm64" -before-build = "rm -rf {project}/_skbuild" diff --git a/packaging/conda-macos-arm64/conda_build_config.yaml b/packaging/conda-macos-arm64/conda_build_config.yaml new file mode 100644 index 0000000..1061f18 --- /dev/null +++ b/packaging/conda-macos-arm64/conda_build_config.yaml @@ -0,0 +1,13 @@ +python: + - 3.9 + - 3.10 + - 3.11 +# - 3.12 +numpy: + - 1.23 + - 1.23 + - 1.23 +# - 1.26 +zip_keys: + - python + - numpy diff --git a/packaging/conda-macos-arm64/meta.yaml b/packaging/conda-macos-arm64/meta.yaml new file mode 100644 index 0000000..8199687 --- /dev/null +++ b/packaging/conda-macos-arm64/meta.yaml @@ -0,0 +1,52 @@ +package: + name: pysces +# version: {{ GIT_DESCRIBE_TAG }} + version: 1.2.1 + +source: + # git_url: https://github.com/PySCeS/pysces.git + path: ../.. + +build: + number: 0 + include_recipe: True + script: "{{ PYTHON }} -m pip install --no-deps --ignore-installed --no-build-isolation . -vv" + +requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - {{ compiler('fortran') }} + host: + - python {{ python }} + - setuptools + - numpy {{ numpy }} + - meson>=1.2.3 + - meson-python + - ninja + - pip + run: + - python {{ python }} + - setuptools + - numpy>=1.23 + - scipy + - matplotlib + - ipyparallel + - assimulo + +test: + imports: + - pysces + commands: + - python -s -c "import pysces; pysces.test(3)" + +about: + home: http://pysces.github.io + license: BSD + license_file: LICENSE.txt + summary: Python Simulator for Cellular Systems + +extra: + maintainers: + - Brett G. Olivier + - Johann M. Rohwer