Skip to content

Commit

Permalink
Merge branch 'development03-bugfix-pkg_resources' of https://github.c…
Browse files Browse the repository at this point in the history
…om/fsck-block/ahoy into fsck-block-development03-bugfix-pkg_resources
  • Loading branch information
lumapu committed Oct 3, 2024
2 parents e601bfe + ac88109 commit 2c27bbe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/auto_firmware_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
#
# Copyright (C) 2022 Thomas Basler and others
#
import pkg_resources

Import("env")

required_pkgs = {'dulwich'}
installed_pkgs = {pkg.key for pkg in pkg_resources.working_set}
missing_pkgs = required_pkgs - installed_pkgs

if missing_pkgs:
try:
from dulwich import porcelain
except ModuleNotFoundError:
env.Execute('"$PYTHONEXE" -m pip install dulwich')
from dulwich import porcelain

from dulwich import porcelain

Expand Down

0 comments on commit 2c27bbe

Please sign in to comment.