diff options
author | Alexander Smirnov <alex@ydb.tech> | 2025-03-12 10:37:13 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2025-03-12 10:37:13 +0000 |
commit | b27c447af8bffc727382c0dc75272e261cbb4ac4 (patch) | |
tree | e0f6199fec84ae26bb5ea26566fa1daa12693e3b /library/python | |
parent | cb56e1cde2824ff3b64be1de4794bff3cab0db61 (diff) | |
parent | d06e9749bd6f0a561ee4fe296cdb3e03a24d1f82 (diff) | |
download | ydb-b27c447af8bffc727382c0dc75272e261cbb4ac4.tar.gz |
Merge pull request #15611 from ydb-platform/merge-libs-250312-0708
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/symbols/python/syms.cpp | 25 | ||||
-rw-r--r-- | library/python/symbols/python/ya.make | 3 | ||||
-rw-r--r-- | library/python/symbols/win_unicode_console/syms.cpp | 15 | ||||
-rw-r--r-- | library/python/symbols/win_unicode_console/ya.make | 11 |
4 files changed, 9 insertions, 45 deletions
diff --git a/library/python/symbols/python/syms.cpp b/library/python/symbols/python/syms.cpp index aa9c3ceeb0..d7958e6135 100644 --- a/library/python/symbols/python/syms.cpp +++ b/library/python/symbols/python/syms.cpp @@ -1,20 +1,4 @@ -#define SYM(SYM_NAME) extern "C" void SYM_NAME(); -SYM(PyBuffer_Release) -SYM(PyCapsule_GetContext) -SYM(PyCapsule_GetDestructor) -SYM(PyCapsule_GetName) -SYM(PyCapsule_GetPointer) -SYM(PyCapsule_IsValid) -SYM(PyCapsule_New) -SYM(PyCapsule_SetContext) -SYM(PyCapsule_SetDestructor) -SYM(PyCapsule_SetName) -SYM(PyCapsule_SetPointer) -SYM(PyCell_New) -SYM(PyObject_GetBuffer) -SYM(Py_DecRef) -SYM(Py_IncRef) -#undef SYM +#include <Python.h> #include <library/python/symbols/registry/syms.h> @@ -31,7 +15,14 @@ SYM(PyCapsule_SetDestructor) SYM(PyCapsule_SetName) SYM(PyCapsule_SetPointer) SYM(PyCell_New) +SYM(PyMem_Malloc) SYM(PyObject_GetBuffer) +SYM(PyOS_Readline) SYM(Py_DecRef) SYM(Py_IncRef) + +#if PY_VERSION_HEX < 0x3000000 +SYM(PyFile_SetEncoding) +SYM(PyFile_AsFile) +#endif END_SYMS() diff --git a/library/python/symbols/python/ya.make b/library/python/symbols/python/ya.make index 20028a44ef..d6682ba3f7 100644 --- a/library/python/symbols/python/ya.make +++ b/library/python/symbols/python/ya.make @@ -1,5 +1,4 @@ -LIBRARY() - +PY23_NATIVE_LIBRARY() PEERDIR( library/python/symbols/registry diff --git a/library/python/symbols/win_unicode_console/syms.cpp b/library/python/symbols/win_unicode_console/syms.cpp deleted file mode 100644 index a26f068518..0000000000 --- a/library/python/symbols/win_unicode_console/syms.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#define SYM(SYM_NAME) extern "C" void SYM_NAME(); -SYM(PyFile_SetEncoding) -SYM(PyFile_AsFile) -SYM(PyMem_Malloc) -SYM(PyOS_Readline) -#undef SYM - -#include <library/python/symbols/registry/syms.h> - -BEGIN_SYMS("python") -SYM(PyFile_SetEncoding) -SYM(PyFile_AsFile) -SYM(PyMem_Malloc) -SYM(PyOS_Readline) -END_SYMS() diff --git a/library/python/symbols/win_unicode_console/ya.make b/library/python/symbols/win_unicode_console/ya.make deleted file mode 100644 index f1fe4ad2ce..0000000000 --- a/library/python/symbols/win_unicode_console/ya.make +++ /dev/null @@ -1,11 +0,0 @@ -LIBRARY() - -PEERDIR( - library/python/symbols/registry -) - -SRCS( - GLOBAL syms.cpp -) - -END() |