blob: b2d0dbf51ee0cf2c06340a08237753926f8a43b2 (
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
|
PY3_LIBRARY()
STYLE_PYTHON()
PEERDIR(
contrib/tools/python3
contrib/tools/python3/lib2/py
library/cpp/resource
)
NO_PYTHON_INCLUDES()
ENABLE(PYBUILD_NO_PYC)
SRCS(
__res.cpp
sitecustomize.cpp
GLOBAL runtime_reg_py3.cpp
)
PY_SRCS(
entry_points.py
)
IF (EXTERNAL_PY_FILES)
PEERDIR(
library/python/runtime_py3/enable_external_py_files
)
ENDIF()
RUN_PROGRAM(
library/python/runtime_py3/stage0pycc
mod=${MODDIR}/__res.py __res.py __res.pyc
mod=${MODDIR}/sitecustomize.py sitecustomize.py sitecustomize.pyc
IN __res.py sitecustomize.py
OUT_NOAUTO __res.pyc sitecustomize.pyc
ENV PYTHONHASHSEED=0
)
ARCHIVE(NAME __res.pyc.inc DONTCOMPRESS __res.pyc)
ARCHIVE(NAME sitecustomize.pyc.inc DONTCOMPRESS sitecustomize.pyc)
END()
RECURSE(
enable_external_py_files
)
RECURSE_FOR_TESTS(
test
)
|