diff options
| -rw-r--r-- | contrib/libs/python/Include/internal/pycore_genobject.h | 7 | ||||
| -rwxr-xr-x | contrib/libs/python/gen_includes.py | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/contrib/libs/python/Include/internal/pycore_genobject.h b/contrib/libs/python/Include/internal/pycore_genobject.h new file mode 100644 index 00000000000..56d06635bf2 --- /dev/null +++ b/contrib/libs/python/Include/internal/pycore_genobject.h @@ -0,0 +1,7 @@ +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/Include/internal/pycore_genobject.h> +#else +#error "No <internal/pycore_genobject.h> in Python2" +#endif diff --git a/contrib/libs/python/gen_includes.py b/contrib/libs/python/gen_includes.py index 89306ee8bd7..9926b05dcb6 100755 --- a/contrib/libs/python/gen_includes.py +++ b/contrib/libs/python/gen_includes.py @@ -15,7 +15,7 @@ def headers_set(directory): f for f in files(directory) if f.endswith(".h") - and (not f.startswith("internal/") or f.startswith("internal/pycore_frame.h")) + and (not f.startswith("internal/") or f.startswith(("internal/pycore_genobject.h", "internal/pycore_frame.h"))) and not re.match(r"^pyconfig[.-].+\.h$", f) } |
