Skip to content

Commit

Permalink
fix(fal): use importlib.metadat instead of deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Jan 21, 2025
1 parent c384c06 commit 22ca9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/fal/src/fal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def _to_fal_app_name(name: str) -> str:


def _print_python_packages() -> None:
from pkg_resources import working_set
from importlib.metadata import distributions

packages = [f"{package.key}=={package.version}" for package in working_set]
packages = [f"{dist.metadata['Name']}=={dist.version}" for dist in distributions()]

print("[debug] Python packages installed:", ", ".join(packages))

Expand Down

0 comments on commit 22ca9a4

Please sign in to comment.