Change Python version guard: PYTHON < 3.7 IS UNSUPPORTED.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-06-19 14:29:39 -07:00
parent 186df220fd
commit 4886d874fc

View File

@ -273,8 +273,8 @@ PYBIND11_WARNING_DISABLE_MSVC(4505)
#include <Python.h>
// Reminder: WITH_THREAD is always defined if PY_VERSION_HEX >= 0x03070000
#if PY_VERSION_HEX < 0x03060000
# error "PYTHON < 3.6 IS UNSUPPORTED. pybind11 v2.9 was the last to support Python 2 and 3.5."
#if PY_VERSION_HEX < 0x03070000
# error "PYTHON < 3.7 IS UNSUPPORTED. pybind11 v2.12 was the last to support Python 3.6."
#endif
#include <frameobject.h>
#include <pythread.h>