File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,7 +278,9 @@ endif()
278278option (pybind11_path "pybind11 path" )
279279find_package (pybind11 2.12.0 REQUIRED PATHS ${pybind11_path} )
280280message (STATUS "pybind11_INCLUDE_DIRS: ${pybind11_INCLUDE_DIRS} " )
281- include_directories (${pybind11_INCLUDE_DIRS} )
281+ # SYSTEM keeps the core's warning flags off pybind11's own headers, the same
282+ # reason numpy gets it below.
283+ include_directories (SYSTEM ${pybind11_INCLUDE_DIRS} )
282284
283285set (NUMPY_INCLUDE_DIR "${Python_NumPy_INCLUDE_DIRS} " )
284286message (STATUS "NUMPY_INCLUDE_DIR: ${NUMPY_INCLUDE_DIR} " )
Original file line number Diff line number Diff line change 293293
294294plat_scipy_install () {
295295 # Runs in the unpacked scipy source directory (the caller has pushd'd).
296- # Ubuntu's pybind11-dev (2.11) at /usr/include shadows our 2.13.6 and
297- # rejects scipy's 3-arg PYBIND11_MODULE. -isystem orders our headers ahead
298- # of /usr/include so scipy compiles against the right pybind11.
296+ # Ubuntu's pybind11-dev (2.11) at /usr/include shadows ours and rejects
297+ # scipy's 3-arg PYBIND11_MODULE. -isystem orders our headers ahead of
298+ # /usr/include so scipy compiles against the right pybind11.
299299 local saved_cxxflags=${CXXFLAGS:- }
300300 export CXXFLAGS=" -isystem ${SCDV_USRDIR} /include ${saved_cxxflags} "
301301 with_log install.log " ${PY} " -m pip install . --no-build-isolation
@@ -1277,11 +1277,11 @@ build_python() {
12771277
12781278build_pybind11 () {
12791279 scdv_skip_p pybind11 && { echo " skip: pybind11" ; return 0 ; }
1280- local ver=2.13.6 full fn
1280+ local ver=3.1.0 full fn
12811281 full=pybind11-${ver} ; fn=${full} .tar.gz
12821282 download_md5 " ${fn} " \
12831283 " https://github.com/pybind/pybind11/archive/refs/tags/v${ver} .tar.gz" \
1284- a04dead9c83edae6d84e2e343da7feeb
1284+ 235664b4673257b80a9ab79f9b208e94
12851285 unpack " ${fn} " " ${full} "
12861286 mkdir -p " ${SCDV_SRCDIR} /${full} /build"
12871287 pushd " ${SCDV_SRCDIR} /${full} /build" > /dev/null
Original file line number Diff line number Diff line change @@ -917,10 +917,10 @@ function Build-Python {
917917
918918function Build-Pybind11 {
919919 if (Test-Skip ' pybind11' ) { Write-Host ' skip: pybind11' ; return }
920- $ver = ' 2.13.6 ' ; $full = " pybind11-$ver " ; $fn = " $full .tar.gz"
920+ $ver = ' 3.1.0 ' ; $full = " pybind11-$ver " ; $fn = " $full .tar.gz"
921921 Get-Download $fn `
922922 " https://github.com/pybind/pybind11/archive/refs/tags/v$ver .tar.gz" `
923- ' a04dead9c83edae6d84e2e343da7feeb '
923+ ' 235664b4673257b80a9ab79f9b208e94 '
924924 Expand-Source $fn $full
925925 $bld = Join-Path $ScdvSrcDir " $full \build"
926926 New-Item - ItemType Directory - Force - Path $bld | Out-Null
You can’t perform that action at this time.
0 commit comments