|
@@ -5000,7 +5000,7 @@ multimodule SANDBOX_TASK {
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*)
|
|
- REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
|
|
|
|
+ REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
when ($FAIL_PY2 == "yes") {
|
|
when ($FAIL_PY2 == "yes") {
|
|
_OK=no
|
|
_OK=no
|
|
}
|
|
}
|
|
@@ -5012,7 +5012,7 @@ multimodule SANDBOX_TASK {
|
|
}
|
|
}
|
|
module PY2: PY2_LIBRARY {
|
|
module PY2: PY2_LIBRARY {
|
|
PEERDIR(sandbox/sdk2 sandbox/sandboxsdk)
|
|
PEERDIR(sandbox/sdk2 sandbox/sandboxsdk)
|
|
- REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
|
|
|
|
+ REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5025,11 +5025,11 @@ multimodule SANDBOX_PY23_TASK {
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE kernel.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*)
|
|
SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*)
|
|
- REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
|
|
|
|
+ REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
}
|
|
}
|
|
module PY2: PY2_LIBRARY {
|
|
module PY2: PY2_LIBRARY {
|
|
PEERDIR(sandbox/sdk2 sandbox/sandboxsdk)
|
|
PEERDIR(sandbox/sdk2 sandbox/sandboxsdk)
|
|
- REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
|
|
|
|
+ REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
OBJ_SUF=.py2
|
|
OBJ_SUF=.py2
|
|
RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT
|
|
RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT
|
|
}
|
|
}
|
|
@@ -5043,39 +5043,39 @@ multimodule SANDBOX_PY23_TASK {
|
|
OBJ_SUF=.py3
|
|
OBJ_SUF=.py3
|
|
RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT
|
|
RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT
|
|
PEERDIR(sandbox/sdk2)
|
|
PEERDIR(sandbox/sdk2)
|
|
- REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
|
|
|
|
+ REGISTER_SANDBOX_IMPORT(${MODDIR})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
# tag:sandbox-specific
|
|
# tag:sandbox-specific
|
|
-### @usage: SANDBOX_PY3_TASK([Name])
|
|
|
|
-###
|
|
|
|
-### Multimodule describing Sandbox task (Python3 code that can be executed by Sandbox system).
|
|
|
|
-###
|
|
|
|
-### When being a final target, this multimodule builds Sandbox binary task. It may PEERDIR other SANDBOX_PY3_TASKs 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 to allow code reuse among SANDBOX_PY3_TASKs.
|
|
|
|
-###
|
|
|
|
-### Currently 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://wiki.yandex-team.ru/sandbox/tasks/binary
|
|
|
|
-multimodule SANDBOX_PY3_TASK {
|
|
|
|
|
|
+### @usage: SANDBOX_PY3_TASK([Name])
|
|
|
|
+###
|
|
|
|
+### Multimodule describing Sandbox task (Python3 code that can be executed by Sandbox system).
|
|
|
|
+###
|
|
|
|
+### When being a final target, this multimodule builds Sandbox binary task. It may PEERDIR other SANDBOX_PY3_TASKs 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 to allow code reuse among SANDBOX_PY3_TASKs.
|
|
|
|
+###
|
|
|
|
+### Currently 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://wiki.yandex-team.ru/sandbox/tasks/binary
|
|
|
|
+multimodule SANDBOX_PY3_TASK {
|
|
module SB_TASK_BIN: PY3_PROGRAM_BIN {
|
|
module SB_TASK_BIN: PY3_PROGRAM_BIN {
|
|
- 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})
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+ 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:python-specific tag:internal
|
|
# tag:python-specific tag:internal
|
|
NO_PYTHON_INCLS=no
|
|
NO_PYTHON_INCLS=no
|
|
### @usage: NO_PYTHON_INCLUDES() # internal
|
|
### @usage: NO_PYTHON_INCLUDES() # internal
|