Cut more opensource deps to build/rules
@@ -1796,7 +1796,7 @@ module PY2_PROGRAM: _PY2_PROGRAM {
when ($FAIL_PY2 == "yes") {
_OK=no
}
- otherwise {
+ elsewhen ($OPENSOURCE != "yes") {
PEERDIR+=build/rules/py2_deprecation
}
ASSERT(_OK You are using deprecated Python2-only code (PY2_PROGRAM). Please consider rewriting to Python 3.)
@@ -2302,7 +2302,7 @@ module PY2TEST: PYTEST_BIN {
when ($FAIL_PY2 == "yes") {
_OK=no
}
- otherwise {
+ elsewhen ($OPENSOURCE != "yes") {
PEERDIR+=build/rules/py2_deprecation
}
SET(MODULE_LANG PY2)
@@ -4954,7 +4954,7 @@ multimodule SANDBOX_TASK {
when ($FAIL_PY2 == "yes") {
_OK=no
}
- otherwise {
+ elsewhen ($OPENSOURCE != "yes") {
PEERDIR+=build/rules/py2_deprecation
}
