diff options
| author | robot-piglet <[email protected]> | 2025-11-07 11:00:42 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-11-07 11:15:17 +0300 |
| commit | fee343f63c4feccab7d2267dff8b007ee6a2f6b5 (patch) | |
| tree | f1f63203ccb4e56dd737a39c087094a6b091a982 /contrib/libs/python | |
| parent | afaa13740d5389830d72481e56033d61d93e6ba0 (diff) | |
Intermediate changes
commit_hash:7e653f120357a5b9cc59e72b311a99dbbbf5941d
Diffstat (limited to 'contrib/libs/python')
| -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) } |
