diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-09-28 06:05:31 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-09-28 06:38:13 +0300 |
commit | 5293f6848120dda6951497e3c264e5c088b4d884 (patch) | |
tree | dc3592335d33259b3c698a567aabaa3c73223850 | |
parent | 8767afd0cea28530e598f4a11ca1c88ca89482c7 (diff) | |
download | ydb-5293f6848120dda6951497e3c264e5c088b4d884.tar.gz |
move SANDBOX stuff to internal
-rw-r--r-- | build/plugins/sandbox_registry.py | 21 | ||||
-rw-r--r-- | build/ymake.core.conf | 149 |
2 files changed, 0 insertions, 170 deletions
diff --git a/build/plugins/sandbox_registry.py b/build/plugins/sandbox_registry.py deleted file mode 100644 index dc1be399b3..0000000000 --- a/build/plugins/sandbox_registry.py +++ /dev/null @@ -1,21 +0,0 @@ -import os - -import ymake - - -def onregister_sandbox_import(unit, *args): - args = iter(args) - for path in args: - path = os.path.normpath(path) - source = unit.resolve_arc_path(path) - abs_source = unit.resolve(source) - if not os.path.exists(abs_source): - ymake.report_configure_error('REGISTER_SANDBOX_IMPORT: File or directory {} does not exists'.format(path)) - splited_path = path.split(os.sep) - l, r = 0, len(splited_path) - if splited_path[-1] == "__init__.py": - r -= 1 - if not splited_path[0]: - l += 1 - path = ".".join(splited_path[l:r]) - unit.onresource(["-", "{}.{}={}".format("SANDBOX_TASK_REGISTRY", path, path)]) diff --git a/build/ymake.core.conf b/build/ymake.core.conf index abbbf31c0d..58e8149762 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -2377,155 +2377,6 @@ macro TEST_CWD(Arg) { SET(TEST_CWD_VALUE $Arg) } -# tag:sandbox-specific tag:deprecated -### @usage: SANDBOX_TASK([Name]) # deprecated -### -### Deprecated. Use SANDBOX_PY23_TASK, SANDBOX_PY3_TASK or SANDBOX_PY23_3_TASK instead. -### -### When being a final target, this multimodule builds Python 2.x Sandbox binary task. -### It may PEERDIR other SANDBOX_TASKs as libraries. -### The final artifact is provided when SANDBOX_TASK is referred to by DEPENDS and BUNDLE macros. -### As PEERDIR target, it works like regular PY2_LIBRARY with predefined dependencies on Sandbox SDK. -### -### Documentation: https://docs.yandex-team.ru/sandbox/dev/binary-task -multimodule SANDBOX_TASK { - module SB_TASK_BIN: _PY2_PROGRAM { - PY_MAIN(sandbox.taskbox.binary) - PEERDIR(sandbox/bin sandbox/sdk2 sandbox/sandboxsdk sandbox/taskbox/worker) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - when ($FAIL_PY2 == "yes") { - _OK=no - } - elsewhen ($OPENSOURCE != "yes") { - PEERDIR+=build/rules/py2_deprecation - } - - ASSERT(_OK You are using deprecated Python2-only code (SANDBOX_TASK). Please consider rewriting to 2/3-compatible code.) - } - module PY2: PY2_LIBRARY { - PEERDIR(sandbox/sdk2 sandbox/sandboxsdk) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } -} - -# tag:sandbox-specific -### @usage: SANDBOX_PY23_3_TASK([Name]) -### -### Multimodule describing Sandbox task - code that can be executed by Sandbox system. -### -### When being a final target, this multimodule builds Python 3.x Sandbox binary task. -### It may PEERDIR other SANDBOX_PY3_TASK/SANDBOX_PY23_3_TASK as libraries. -### The final artifact is provided when SANDBOX_PY23_3_TASK is referred to by DEPENDS and BUNDLE macros. -### As PEERDIR target, it works like regular PY23_LIBRARY with predefined dependencies on Sandbox SDK. -### -### Sandbox supports Python 3.x only in binary tasks, both variants will be compatible only with Python 3.x and py23 libraries -### and will select multimodule variants accordingly. -### -### Documentation: https://docs.yandex-team.ru/sandbox/dev/binary-task#python3 -multimodule SANDBOX_PY23_3_TASK { - module SB_TASK_BIN: PY3_PROGRAM_BIN { - .IGNORED=RUN_ANTLR4_PYTHON - PY_MAIN(sandbox.taskbox.binary) - PEERDIR(sandbox/bin sandbox/sdk2 sandbox/taskbox/worker) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } - module PY2: PY2_LIBRARY { - .RESTRICTED=RUN_ANTLR4_PYTHON - PEERDIR(sandbox/sdk2 sandbox/sandboxsdk) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - OBJ_SUF=.py2 - } - module PY3: PY3_LIBRARY { - .RESTRICTED=RUN_ANTLR4_PYTHON - when ($MSVC == "yes" || $CYGWIN == "yes") { - MODULE_PREFIX=py3 - } - otherwise { - MODULE_PREFIX=libpy3 - } - OBJ_SUF=.py3 - RUN_CYTHON_SCRIPT_H=$YMAKE_PYTHON $CYTHON_SCRIPT - PEERDIR(sandbox/sdk2) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } -} - -# tag:sandbox-specific -### @usage: SANDBOX_PY23_TASK([Name]) -### -### Multimodule describing Sandbox task - code that can be executed by Sandbox system. -### -### When being a final target, this multimodule builds Python 2.x Sandbox binary task. -### It may PEERDIR other SANDBOX_PY23_TASKs as libraries. -### The final artifact is provided when SANDBOX_PY23_TASK is referred to by DEPENDS and BUNDLE macros. -### As PEERDIR target, it works like regular PY23_LIBRARY with predefined dependencies on Sandbox SDK. -### -### Documentation: https://docs.yandex-team.ru/sandbox/dev/binary-task -multimodule SANDBOX_PY23_TASK { - module SB_TASK_BIN: _PY2_PROGRAM { - .RESTRICTED=RUN_ANTLR4_PYTHON - PY_MAIN(sandbox.taskbox.binary) - PEERDIR(sandbox/bin sandbox/sdk2 sandbox/sandboxsdk sandbox/taskbox/worker) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } - module PY2: PY2_LIBRARY { - .RESTRICTED=RUN_ANTLR4_PYTHON - PEERDIR(sandbox/sdk2 sandbox/sandboxsdk) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - OBJ_SUF=.py2 - } - module PY3: PY3_LIBRARY { - .RESTRICTED=RUN_ANTLR4_PYTHON - OBJ_SUF=.py3 - RUN_CYTHON_SCRIPT_H=$YMAKE_PYTHON $CYTHON_SCRIPT - PEERDIR(sandbox/sdk2) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } -} - -# tag:sandbox-specific -### @usage: SANDBOX_PY3_TASK([Name]) -### -### Multimodule describing Sandbox task - code that can be executed by Sandbox system. -### -### When being a final target, this multimodule builds Python 3.x Sandbox binary task. -### It may PEERDIR other SANDBOX_PY3_TASK/SANDBOX_PY23_3_TASK as libraries. -### The final artifact is provided when SANDBOX_PY3_TASK is referred to by DEPENDS and BUNDLE macros. -### As PEERDIR target, it works like regular PY3_LIBRARY with predefined dependencies on Sandbox SDK. -### -### Sandbox supports Python 3.x only in binary tasks, both variants will be compatible only with Python 3.x and py23 libraries -### and will select multimodule variants accordingly. -### -### Documentation: https://docs.yandex-team.ru/sandbox/dev/binary-task#python3 -multimodule SANDBOX_PY3_TASK { - module SB_TASK_BIN: PY3_PROGRAM_BIN { - .IGNORED=RUN_ANTLR4_PYTHON - PY_MAIN(sandbox.taskbox.binary) - PEERDIR(sandbox/bin sandbox/sdk2 sandbox/taskbox/worker) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*) - SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } - module PY3: PY3_LIBRARY { - PEERDIR(sandbox/sdk2) - REGISTER_SANDBOX_IMPORT(${MODDIR}) - } -} - # tag:allocator ### @usage: ALLOCATOR(Alloc) # Default: LF ### |