Check imports in PY_PROGRAMs without PY_SRCS and PY_MAIN
This is needed to run import tests in py2 and py3 directories and with "ya py -t".
@@ -1692,6 +1692,8 @@ module PY3_LIBRARY: _LIBRARY {
module BASE_PY_PROGRAM: BASE_PROGRAM {
.CMD=PY_PROGRAM_LINK_EXE
_ARCADIA_PYTHON_ADDINCL()
+
+ ADD_CHECK_PY_IMPORTS()
OPTIMIZE_PY_PROTOS()
when ($NO_PYTHON_INCLS != "yes") {
@@ -1715,6 +1717,8 @@ module BASE_PY3_PROGRAM: BASE_PROGRAM {
_ARCADIA_PYTHON3_ADDINCL()
PEERDIR(library/python/runtime_py3/main)
+ ADD_CHECK_PY_IMPORTS()
+
ALLOCATOR(J)
STRIP()
