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

LICENSE(Service-Py23-Proxy)

WITHOUT_LICENSE_TEXTS()

NO_PYTHON_INCLUDES()

IF (USE_ARCADIA_PYTHON)
    ADDINCL(
        GLOBAL contrib/libs/python/Include
    )

    PEERDIR(
        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")
        CFLAGS(
            GLOBAL -DUSE_PYTHON2
        )
        PEERDIR(
            contrib/tools/python/lib
            library/python/runtime
        )
    ELSE()
        CFLAGS(
            GLOBAL -DUSE_PYTHON3
        )
        PEERDIR(
            contrib/tools/python3/lib
            contrib/tools/python3/src
            library/python/runtime_py3
        )
    ENDIF()
ELSE()
    IF (USE_SYSTEM_PYTHON)
        PEERDIR(
            build/platform/python
        )
    ELSE()
        CFLAGS(GLOBAL $PYTHON_INCLUDE)
    ENDIF()
ENDIF()

END()