Skip to content

Commit

Permalink
fix: backend.ai-kernel not set as agent package dependency (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho authored Oct 26, 2023
1 parent 3b7ebca commit 075fa3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/1660.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `backend.ai-agent` package not recognizing `backend.ai-kernel` as dependency when building python package
2 changes: 2 additions & 0 deletions src/ai/backend/agent/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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/**",
],
)
Expand All @@ -46,6 +47,7 @@ python_distribution(
name="dist",
dependencies=[
":src",
"src/ai/backend/kernel:src",
":kernel-support", # not auto-inferred
"!!stubs/trafaret:stubs",
],
Expand Down
4 changes: 3 additions & 1 deletion src/ai/backend/kernel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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/**",
Expand Down

0 comments on commit 075fa3c

Please sign in to comment.