From 0c5c2e39f9227825a4cd83a0df4efff25275e556 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 22 Jun 2021 12:01:43 +0200 Subject: lib: deps: Upgrade vendor version of Pybind11 to 2.6.1 - Copied include/pybind11 directory over from source repo - Also re-ran remove_comments.py as before This fixes this warning on newer Python libraries: .../internals.h: 200:9: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations] PyEval_InitThreads(); ^ /usr/include/python3.9/ceval.h:130:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); ^ /usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) It also obviates the need for patches to Pybind11 to silence clang warnings. --- host/lib/deps/pybind11/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib/deps/pybind11/README.md') diff --git a/host/lib/deps/pybind11/README.md b/host/lib/deps/pybind11/README.md index 16cc54ebb..6622895b2 100644 --- a/host/lib/deps/pybind11/README.md +++ b/host/lib/deps/pybind11/README.md @@ -1,6 +1,6 @@ # PyBind11: Third-Party Dependency for UHD -Version: 25abf7ef (post-2.2.4) +Version: 2.6.1 (git hash: f1abf5d) PyBind11 is a replacement for Boost.Python. Unlike Boost.Python, however, we ship it with the UHD repository instead of relying on it to be there external to @@ -9,6 +9,9 @@ most distributions at this time. It also allows us to lock down the version of PyBind11 used; with Boost, we often have to apply hacks to make sure UHD works across all of the Boost versions that we support. +Note that the UHD CMake allows for using a different version of PyBind11 (e.g., +the one installed via package manager). + ## License for PyBind11 As a seperate, third-party project, PyBind11 has a different license from UHD. -- cgit v1.2.3