aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/python/ya.make
blob: 95e7f8744e9a87c0c72ee9a5c6a6e2c18a18f1bb (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
PY23_LIBRARY()

LICENSE(YandexOpen)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

NO_PYTHON_INCLUDES()

IF (USE_ARCADIA_PYTHON)
    PEERDIR(
        contrib/libs/python/Include
        library/python/symbols/module
        library/python/symbols/libc
        library/python/symbols/python
    )
    IF (NOT OS_WINDOWS AND NOT OPENSOURCE)
        PEERDIR(
            library/python/symbols/uuid
        )
    ENDIF()
    IF (MODULE_TAG == "PY2")
        PEERDIR(
            contrib/tools/python/lib
            library/python/runtime
        )
    ELSE()
        PEERDIR(
            contrib/tools/python3/lib
            library/python/runtime_py3
        )
    ENDIF()
ELSE()
    IF (USE_SYSTEM_PYTHON)
        PEERDIR(
            build/platform/python
        )
    ELSE()
        CFLAGS(GLOBAL $PYTHON_INCLUDE)
    ENDIF()
ENDIF()

END()

RECURSE(
    Include
)