aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorkuzmich321 <kuzmich321@yandex-team.com>2023-12-05 11:07:52 +0300
committerkuzmich321 <kuzmich321@yandex-team.com>2023-12-05 12:12:06 +0300
commit27c5889c53eb79bbb5af840f8dca9af826c0cd08 (patch)
treebe0c13d96820aad7627644caa2938badc107d06c /build
parent35dbdd727c05367b340b5d47585458adf47253eb (diff)
downloadydb-27c5889c53eb79bbb5af840f8dca9af826c0cd08.tar.gz
import tracing
* add argument to parser * add out_path as fn parameter * set necessary env variables for import tracing
Diffstat (limited to 'build')
-rw-r--r--build/conf/python.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/build/conf/python.conf b/build/conf/python.conf
index 674c969653..8fcd11593d 100644
--- a/build/conf/python.conf
+++ b/build/conf/python.conf
@@ -140,6 +140,9 @@ PYTHON2=no
PYTHON3=no
# tag:python-specific
+PYTHON_IMPORT_TRACING=yes
+
+# tag:python-specific
when (!$ARCADIA_PYTHON_UNICODE_SIZE) {
when ($OS_WINDOWS) {
ARCADIA_PYTHON_UNICODE_SIZE=2
@@ -601,6 +604,10 @@ module _BASE_PY_PROGRAM: _BASE_PROGRAM {
PEERDIR+=library/python/coverage
}
+ when ($PYTHON_IMPORT_TRACING == "yes") {
+ PEERDIR += library/python/import_tracing/constructor
+ }
+
when ($ARCH_PPC64LE == "yes") {
_MY_ALLOCATOR=SYSTEM
}
@@ -675,6 +682,9 @@ module _BASE_PY3_PROGRAM: _BASE_PROGRAM {
when ($PYTHON_COVERAGE == "yes") {
PEERDIR+=library/python/coverage
}
+ when ($PYTHON_IMPORT_TRACING == "yes") {
+ PEERDIR += library/python/import_tracing/constructor
+ }
when ($CODENAVIGATION && $NOCODENAVIGATION != "yes") {
PEERDIR += contrib/python/six
}
@@ -846,6 +856,14 @@ macro NO_PYTHON_COVERAGE() {
DISABLE(PYTHON_COVERAGE)
}
+# tag:python-specific tag:import_tracing
+### @usage: NO_IMPORT_TRACING()
+###
+### Disable python coverage for module
+macro NO_IMPORT_TRACING() {
+ DISABLE(PYTHON_IMPORT_TRACING)
+}
+
# tag:python-specific tag:coverage tag:cython
### @usage: NO_CYTHON_COVERAGE()
###