aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/ya.make
blob: efb5b475c4f00b66dab3e972d3e226e8fd9f949a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
PY23_NATIVE_LIBRARY()

YQL_ABI_VERSION(2 27 0)

SRCS(
    py_callable.cpp
    py_cast.cpp
    py_decimal.cpp
    py_errors.cpp
    py_dict.cpp
    py_list.cpp
    py_lazy_mkql_dict.cpp
    py_lazy_mkql_list.cpp
    py_iterator.cpp
    py_resource.cpp
    py_stream.cpp
    py_struct.cpp
    py_tuple.cpp
    py_utils.cpp
    py_variant.cpp
    py_void.cpp
    py_yql_module.cpp
)

IF (USE_SYSTEM_PYTHON AND _SYSTEM_PYTHON27)
    # we should be able to run on python 2.7.X versions
    # with X ranging from 3 to (at least) 15
    #
    # for now bindings already use some functionality from 2.7.15,
    # which doesn't exist earlier versions
    # (according symbols won't be loaded from system python)
    #
    # so we provide backported implementation for this scenario to work as intended
    SRCS(
        py27_backports.c
    )
ENDIF()

RESOURCE(
    typing.py typing.py
)

PEERDIR(
    yql/essentials/public/udf
    yql/essentials/utils
)

NO_COMPILER_WARNINGS()

END()

RECURSE_FOR_TESTS(
    ut3
)