Skip to content

Commit a80af95

Browse files
committed
Add a dummy common.h header with a deprecation warning
1 parent 00b8f36 commit a80af95

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ set(PYBIND11_HEADERS
5151
include/pybind11/buffer_info.h
5252
include/pybind11/cast.h
5353
include/pybind11/chrono.h
54+
include/pybind11/common.h
5455
include/pybind11/complex.h
5556
include/pybind11/options.h
5657
include/pybind11/eigen.h

include/pybind11/common.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "detail/common.h"
2+
#warning "Including 'common.h' is deprecated. It will be removed in v3.0. Use 'pybind11.h'."

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'include/pybind11/buffer_info.h',
2424
'include/pybind11/cast.h',
2525
'include/pybind11/chrono.h',
26+
'include/pybind11/common.h',
2627
'include/pybind11/complex.h',
2728
'include/pybind11/eigen.h',
2829
'include/pybind11/embed.h',

0 commit comments

Comments
 (0)