diff options
author | mpereskokova <[email protected]> | 2024-04-16 18:19:42 +0300 |
---|---|---|
committer | mpereskokova <[email protected]> | 2024-04-16 18:29:00 +0300 |
commit | 6a420b1b5db93711a8e95b08776247cedaa0259f (patch) | |
tree | ba46dbd49e23f336f335cf11a0a5a9e2b0b08d63 | |
parent | 9fed6f36e061d4262bb4095c91ca400775f8b8c1 (diff) |
YT-21446: Add python udfs dependency in piglet
a960b2510dc0ed8b11807d92f1826459a8c9a5c8
-rw-r--r-- | build/platform/python/ldflags/ya.make | 17 | ||||
-rw-r--r-- | library/python/type_info/__init__.py | 6 | ||||
-rw-r--r-- | library/python/type_info/type_base.py | 4 | ||||
-rw-r--r-- | library/python/type_info/typing.py | 11 | ||||
-rw-r--r-- | library/python/type_info/ya.make | 19 |
5 files changed, 57 insertions, 0 deletions
diff --git a/build/platform/python/ldflags/ya.make b/build/platform/python/ldflags/ya.make new file mode 100644 index 00000000000..0115ed72567 --- /dev/null +++ b/build/platform/python/ldflags/ya.make @@ -0,0 +1,17 @@ +RESOURCES_LIBRARY() + +SUBSCRIBER(g:contrib) + +IF (USE_SYSTEM_PYTHON) + IF (OS_LINUX) + LDFLAGS("-L$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/lib/x86_64-linux-gnu -lpython${PY_VERSION}") + ELSEIF (OS_DARWIN) + LDFLAGS("-L$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/Python.framework/Versions/${PY_FRAMEWORK_VERSION}/lib -lpython${PY_VERSION}") + ELSEIF (OS_WINDOWS) + LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs") + ENDIF() +ELSEIF (NOT USE_ARCADIA_PYTHON) + LDFLAGS($PYTHON_LDFLAGS $PYTHON_LIBRARIES) +ENDIF() + +END() diff --git a/library/python/type_info/__init__.py b/library/python/type_info/__init__.py new file mode 100644 index 00000000000..33ce41d8c57 --- /dev/null +++ b/library/python/type_info/__init__.py @@ -0,0 +1,6 @@ +from yt.type_info import * # noqa + +# library moved from yandex.type_info to yt.type_info + +# import logging +# logging.warning("\"yandex.type_info\" - deprecated, use \"yt.type_info\"\n") diff --git a/library/python/type_info/type_base.py b/library/python/type_info/type_base.py new file mode 100644 index 00000000000..bdff6839fd5 --- /dev/null +++ b/library/python/type_info/type_base.py @@ -0,0 +1,4 @@ +from yt.type_info.type_base import * # noqa +from yt.type_info.type_base import ( # noqa + _with_type, _is_utf8, _as_utf8 +) diff --git a/library/python/type_info/typing.py b/library/python/type_info/typing.py new file mode 100644 index 00000000000..ea325fddb07 --- /dev/null +++ b/library/python/type_info/typing.py @@ -0,0 +1,11 @@ +from yt.type_info.typing import * # noqa + +from yt.type_info.typing import ( # noqa + _TI_SERIALIZATION_AVAILABLE, _SingleArgumentGenericAlias, + _SingleArgumentGeneric, _make_tuple_attrs, _TupleAlias, + _GenericTuple, _DictAlias, _GenericDict, _validate_struct_fields, + _make_struct_attrs, _StructAlias, _GenericStruct, _GenericVariant, + _TaggedAlias, _GenericTagged, _DecimalAlias, _GenericDecimal, + _validate, _validate_contains, _parse_type, + _check_serialization_available +) diff --git a/library/python/type_info/ya.make b/library/python/type_info/ya.make new file mode 100644 index 00000000000..0f12c1b8484 --- /dev/null +++ b/library/python/type_info/ya.make @@ -0,0 +1,19 @@ +PY23_LIBRARY() + +SUBSCRIBER( + g:yt +) + +PEERDIR( + yt/python/yt/type_info +) + +PY_SRCS( + NAMESPACE yandex.type_info + + __init__.py + typing.py + type_base.py +) + +END() |