diff --git a/changes/1660.fix.md b/changes/1660.fix.md new file mode 100644 index 0000000000..bdb57be2b9 --- /dev/null +++ b/changes/1660.fix.md @@ -0,0 +1 @@ +Fix `backend.ai-agent` package not recognizing `backend.ai-kernel` as dependency when building python package diff --git a/src/ai/backend/agent/BUILD b/src/ai/backend/agent/BUILD index 86cc0865fc..1511b50d61 100644 --- a/src/ai/backend/agent/BUILD +++ b/src/ai/backend/agent/BUILD @@ -20,6 +20,7 @@ visibility_private_component( "//src/ai/backend/plugin/**", "//src/ai/backend/cli/**", # not auto-inferred "//src/ai/backend/runner/**", + "//src/ai/backend/kernel/**", "//src/ai/backend/helpers/**", ], ) @@ -46,6 +47,7 @@ python_distribution( name="dist", dependencies=[ ":src", + "src/ai/backend/kernel:src", ":kernel-support", # not auto-inferred "!!stubs/trafaret:stubs", ], diff --git a/src/ai/backend/kernel/BUILD b/src/ai/backend/kernel/BUILD index 3aafbdd9d6..81b21d145c 100644 --- a/src/ai/backend/kernel/BUILD +++ b/src/ai/backend/kernel/BUILD @@ -9,7 +9,9 @@ python_sources( ) visibility_private_component( - allowed_dependents=[], + allowed_dependents=[ + "//src/ai/backend/agent/**", + ], allowed_dependencies=[ "//src/ai/backend/runner/**", "//src/ai/backend/helpers/**",