From 9a9e919e17d5ce70a0d432e1789db0ec63867484 Mon Sep 17 00:00:00 2001 From: Eric Lundby Date: Thu, 23 Jan 2025 15:46:55 -0700 Subject: [PATCH] Copy headers to prefix/include --- recipe/build-pybind11-global.bat | 3 +++ recipe/meta.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/recipe/build-pybind11-global.bat b/recipe/build-pybind11-global.bat index 4100ec3..af9cc7f 100644 --- a/recipe/build-pybind11-global.bat +++ b/recipe/build-pybind11-global.bat @@ -3,4 +3,7 @@ set PYBIND11_GLOBAL_SDIST=1 set PYBIND11_GLOBAL_PREFIX=Library %PYTHON% -m pip install . -vv --no-build-isolation --no-deps + +:: Copy the headers to the global include directory to match how the pip package behaves. +cp -r %PREFIX%/include/pybind11_global/* %PREFIX%/include if errorlevel 1 exit 1 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 304936e..6419bde 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -21,7 +21,7 @@ source: - patches/0000_win_fix_paths.patch # [win] build: - number: 0 + number: 1 requirements: build: # [win]