Skip to content

Commit 0ca2b08

Browse files
committed
update to 2.10.1
1 parent 9e68f84 commit 0ca2b08

File tree

7 files changed

+92
-117
lines changed

7 files changed

+92
-117
lines changed

recipe/bld.bat

Lines changed: 0 additions & 41 deletions
This file was deleted.

recipe/build-pybind11-global.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:: There are several required flags, like --no-deps, but conda-build nicely sets them for us
2+
:: https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527
3+
set PYBIND11_GLOBAL_SDIST=1
4+
set PYBIND11_GLOBAL_PREFIX=Library
5+
%PYTHON% -m pip install . -vv --no-build-isolation
6+
if errorlevel 1 exit 1

recipe/build-pybind11-global.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# There are several required flags, like --no-deps, but conda-build nicely sets them for us
2+
# https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527
3+
export PYBIND11_GLOBAL_SDIST=1
4+
$PYTHON -m pip install . -vv --no-build-isolation

recipe/build-pybind11.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:: There are several required flags, like --no-deps, but conda-build nicely sets them for us
2+
:: https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527
3+
%PYTHON% -m pip install . -vv --no-build-isolation
4+
if errorlevel 1 exit 1

recipe/build-pybind11.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# There are several required flags, like --no-deps, but conda-build nicely sets them for us
2+
# https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527
3+
$PYTHON -m pip install . -vv --no-build-isolation

recipe/build.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

recipe/meta.yaml

Lines changed: 75 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
{% set version = "2.9.2" %}
2-
{% set sha256 = "6bd528c4dbe2276635dc787b6b1f2e5316cf6b49ee3e150264e455a0d68d19c1" %}
3-
{% set build_number = "0" %}
1+
{% set version = "2.10.1" %}
2+
{% set sha256 = "111014b516b625083bef701df7880f78c2243835abdb263065b6b59b960b6bad" %}
3+
4+
# this is set to PYBIND11_INTERNALS_VERSION
5+
{% set abi_version = "4" %}
46

57
package:
6-
name: pybind11
8+
name: pybind11-split
79
version: {{ version }}
810

911
source:
@@ -12,56 +14,86 @@ source:
1214
sha256: {{ sha256 }}
1315

1416
build:
15-
skip: true # [win32] win32 is a deprecated platform.
16-
number: {{ build_number }}
17+
number: 0
18+
19+
outputs:
20+
- name: pybind11-abi
21+
version: {{ abi_version }}
22+
build:
23+
noarch: generic
24+
skip: true # [not linux64]
25+
run_exports:
26+
- pybind11-abi =={{ abi_version }}
27+
test:
28+
source_files:
29+
- include/pybind11/detail/internals.h
30+
commands:
31+
# make sure the internals version matches the package version
32+
- if [ $(grep "#define PYBIND11_INTERNALS_VERSION" include/pybind11/detail/internals.h | cut -d' ' -f3) != "{{ abi_version }}" ]; then exit 1; fi
1733

18-
requirements:
19-
build:
20-
- {{ compiler('cxx') }}
21-
- cmake >=3.18
22-
- ninja
23-
host:
24-
- python
25-
- pip
26-
- setuptools >=42
27-
- wheel
28-
# The following packages are required/desireable for the author's testing:
29-
- pytest
30-
- numpy
31-
- scipy
32-
- eigen >=3.2.7
33-
- libboost >=1.56
34-
run:
35-
- python
34+
- name: pybind11-global
35+
script: build-pybind11-global.sh # [unix]
36+
script: build-pybind11-global.bat # [win]
37+
requirements:
38+
build:
39+
- python # [build_platform != target_platform]
40+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
41+
- cmake
42+
- make # [unix]
43+
- {{ compiler('cxx') }}
44+
host:
45+
- python
46+
- pip
47+
- setuptools
48+
run:
49+
- python
50+
run_constrained:
51+
- pybind11-abi =={{ abi_version }}
52+
test:
53+
commands:
54+
- echo "works!"
3655

37-
test:
38-
# Note: The author's build tests are enabled in the build scripts;
39-
# however, they do not currently pass and the results of the check
40-
# are ignored. This should be corrected as time allows.
41-
imports:
42-
- pybind11
43-
requires:
44-
- pip
45-
commands:
46-
- test -f ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake # [unix]
47-
- if exist %LIBRARY_PREFIX%\share\cmake\pybind11\pybind11Config.cmake (exit 0) else (exit 1) # [win]
48-
- test -f ${PREFIX}/include/pybind11/pybind11.h # [unix]
49-
- if exist %LIBRARY_INC%\pybind11\pybind11.h (exit 0) else (exit 1) # [win]
50-
- test -f $(python -c "import pybind11 as py; print(py.get_include())")/pybind11/pybind11.h # [unix]
51-
- if exist $(python -c "import pybind11 as py; print(py.get_include())")\pybind11\pybind11.h (exit 0) else (exit 1) # [win]
52-
- pip check
56+
- name: pybind11
57+
script: build-pybind11.sh # [unix]
58+
script: build-pybind11.bat # [win]
59+
requirements:
60+
build:
61+
- python # [build_platform != target_platform]
62+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
63+
- cmake
64+
- make # [unix]
65+
- {{ compiler('cxx') }}
66+
host:
67+
- python
68+
- pip
69+
- setuptools
70+
run:
71+
- python
72+
- {{ pin_subpackage("pybind11-global", exact=True) }}
73+
run_constrained:
74+
- pybind11-abi =={{ abi_version }}
75+
test:
76+
imports:
77+
- pybind11
78+
commands:
79+
- test -f ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake # [unix]
80+
- if exist %LIBRARY_PREFIX%\share\cmake\pybind11\pybind11Config.cmake (exit 0) else (exit 1) # [win]
81+
- test -f ${PREFIX}/include/pybind11/pybind11.h # [unix]
82+
- if exist %LIBRARY_INC%\pybind11\pybind11.h (exit 0) else (exit 1) # [win]
83+
- test -f $(python -c "import pybind11 as py; print(py.get_include())")/pybind11/pybind11.h # [unix]
84+
- if exist $(python -c "import pybind11 as py; print(py.get_include())")\pybind11\pybind11.h (exit 0) else (exit 1) # [win]
5385

5486
about:
5587
home: https://github.com/pybind/pybind11/
5688
license: BSD-3-Clause
5789
license_family: BSD
58-
summary: Seamless operability between C++11 and Python
5990
license_file: LICENSE
60-
doc_url: https://github.com/pybind/pybind11/blob/master/README.rst
61-
dev_url: https://github.com/pybind/pybind11/
91+
summary: Seamless operability between C++11 and Python
92+
doc_url: https://pybind11.readthedocs.io/
6293

6394
extra:
6495
recipe-maintainers:
6596
- ax3l
6697
- SylvainCorlay
6798
- wjakob
99+
- henryiii

0 commit comments

Comments
 (0)