aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/runtime_py3/ya.make
blob: dc97c8e2e0885fd670f567bedd73ea53c3ee8182 (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
PY3_LIBRARY()

STYLE_PYTHON()

PEERDIR(
    contrib/tools/python3
    contrib/tools/python3/lib2/py
    library/cpp/resource
)

CFLAGS(-DCYTHON_REGISTER_ABCS=0)

NO_PYTHON_INCLUDES()

ENABLE(PYBUILD_NO_PYC)

PY_SRCS(
    entry_points.py
    TOP_LEVEL

    CYTHON_DIRECTIVE
    language_level=3

    __res.pyx
    sitecustomize.pyx
)

IF (EXTERNAL_PY_FILES)
    PEERDIR(
        library/python/runtime_py3/enable_external_py_files
    )
ENDIF()

IF (CYTHON_COVERAGE)
    # Let covarage support add all needed files to resources
ELSE()
    RESOURCE_FILES(
        DONT_COMPRESS
        PREFIX ${MODDIR}/
        __res.pyx
        importer.pxi
        sitecustomize.pyx
    )
ENDIF()

END()

RECURSE(
    enable_external_py_files
)

RECURSE_FOR_TESTS(
    test
)