pybind11 v2.13.6
- Created
- Updated
pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code
# Usage
pybind11 provides CMake targets. There are two modes provided; classic, which is built on the old Python
discovery packages in CMake, or the new FindPython mode, which uses FindPython
from 3.12+ forward (3.15+ _highly_ recommended).
New FindPython mode:
find_package(Python COMPONENTS Interpreter Development)
find_package(pybind11 CONFIG)
# pybind11 method:
pybind11_add_module(MyModule1 src1.cpp)
# Python method:
Python_add_library(MyModule2 src2.cpp)
target_link_libraries(MyModule2 pybind11::headers)
set_target_properties(MyModule2 PROPERTIES
INTERPROCEDURAL_OPTIMIZATION ON
CXX_VISIBILITY_PRESET ON
VISIBILITY_INLINES_HIDDEN ON
)
For more information see here:
https://pybind11.readthedocs.io/en/latest/compiling.html#building-with-cmake
# License
# Supported Platforms
!(arm & windows)
- ✅ linux
- ✅ osx
- ✅ uwp
- ✅ windows-x64
- ✅ windows-x86
- ❌
windows-arm64
# Features
No features defined.
# Dependencies
and 11 transitive dependencies:
- gettext-libintl (by gettext )
libiconv (by gettext-libintl )
Platforms:
!linux
- zlib (by python3 )
# Host Dependencies
and 7 transitive dependencies:
- pkgconf (by vcpkg-pkgconfig-get-modules )
- vcpkg-cmake-get-vars (by vcpkg-make )
- vcpkg-get-python (by python3 )
- vcpkg-make (by gettext-libintl )
vcpkg-msbuild (by python3 )
Platforms:
windows
- vcpkg-pkgconfig-get-modules (by vcpkg-msbuild )
- vcpkg-tool-meson (by pkgconf )
# Dependents
- llvm (feature
enable-mlir-python-bindings
) - netgen (feature
python
) - numcpp (feature
python
) - openimageio (feature
pybind11
) - pangolin (feature
pybind11
) - tensorpipe (feature
pybind11
)
# Host Dependents
No dependents.
# Contributors
Ethan Smith
Robert Schumacher
Kyle Macfarlan
Alexander Karatarakis
Albert Ziegenhagel
Albert Ziegenhagel
Stanislav Ershov
Sztergbaum Roman
zhihaoy
pravic
Stefano Sinigardi
Anand Balakrishnan
ras0219
Mikhail Boldyrev
Adam Johnson
JonLiu1993
Ryan
chausner
NancyLi1013
SunBlack
Alexander Neumann
Qingnan Duan
Jack·Boos·Yu
Yury Bura
miyanyan
Osyotr
# Changelog
and 39 more commits:
c5acdcd
[pybind11] Apply patch for alias templates087498f
[pybind11] Fix version in CONTROL after updatef8ac383
[pybind11] Update to 2.2.126516fe
vcpkg_configure_cmake (and _meson) now embed debug symbols within static libs (/Z7)d2c045c
Update pybind11 version to 2.2.050fca8f
[pybind11] Build against python3 library inside vcpkg, add find_acquire_program(PYTHON3)2aff607
[pybind11] Disable building tests to remove pytest dependency.4990c31
fix sourcepath pybind11 2.1.07a703e7
remove unused options0723e52
update pybind11 to 2.1.0bfb3ef8
add pybind11 port