Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 41 additions & 21 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% set version = "2.2.0" %}
{% set robin_map_commit = "188c45569cc2a5dd768077c193830b51d33a5020" %}
{% set abi_version = 15 %}

package:
name: nanobind
name: nanobind-split
version: {{ version }}

source:
Expand All @@ -13,28 +14,46 @@ source:
folder: ext/robin_map

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
number: 1

requirements:
host:
- python >=3.8
- scikit-build-core
- cmake
- make
- pip
- git
run:
- python >=3.8
outputs:
- name: nanobind-abi
version: {{ abi_version }}
build:
noarch: generic
run_exports:
- nanobind-abi =={{ abi_version }}
test:
source_files:
- src/nb_internals.cpp
commands:
# make sure the internals version matches the package version
- if [ $(grep "define NB_INTERNALS_VERSION" src/nb_internals.cpp | grep -E -o '[0-9]+') != "{{ abi_version }}" ]; then exit 1; fi

test:
requires:
- python >=3.8
- pip
commands:
- pip check
- python -c "import nanobind; import os; assert os.path.isdir(nanobind.cmake_dir()) and os.path.isdir(nanobind.include_dir())"
- name: nanobind
build:
noarch: python
script: $PYTHON -m pip install . -vv

requirements:
host:
- python >=3.8
- scikit-build-core
- cmake
- make
- pip
- git
run:
- python >=3.8
run_constrained:
- nanobind-abi =={{ abi_version }}
test:
requires:
- python >=3.8
- pip
commands:
- pip check
- python -c "import nanobind; import os; assert os.path.isdir(nanobind.cmake_dir()) and os.path.isdir(nanobind.include_dir())"

about:
home: https://github.com/wjakob/nanobind
Expand All @@ -52,6 +71,7 @@ about:
dev_url: https://github.com/wjakob/nanobind

extra:
feedstock-name: nanobind
recipe-maintainers:
- MatthiasKohl
- wjakob