update build cli

This commit is contained in:
Xi Yan 2024-09-14 13:35:09 -07:00
parent 768ed09dec
commit d1f0d17644
6 changed files with 109 additions and 117 deletions

View file

@ -31,14 +31,14 @@ SERVER_DEPENDENCIES = [
]
def distribution_dependencies(distribution: DistributionSpec) -> List[str]:
# only consider InlineProviderSpecs when calculating dependencies
return [
dep
for provider_spec in distribution.provider_specs.values()
if isinstance(provider_spec, InlineProviderSpec)
for dep in provider_spec.pip_packages
] + SERVER_DEPENDENCIES
# def distribution_dependencies(distribution: DistributionSpec) -> List[str]:
# # only consider InlineProviderSpecs when calculating dependencies
# return [
# dep
# for provider_spec in distribution.provider_specs.values()
# if isinstance(provider_spec, InlineProviderSpec)
# for dep in provider_spec.pip_packages
# ] + SERVER_DEPENDENCIES
def stack_apis() -> List[Api]: