mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-28 17:56:21 +02:00
Merge branch 'fsck-block-development03-bugfix-pkg_resources' into development03
This commit is contained in:
commit
ea8e2121a5
1 changed files with 4 additions and 6 deletions
|
@ -2,16 +2,14 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2022 Thomas Basler and others
|
# Copyright (C) 2022 Thomas Basler and others
|
||||||
#
|
#
|
||||||
import pkg_resources
|
|
||||||
|
|
||||||
Import("env")
|
Import("env")
|
||||||
|
|
||||||
required_pkgs = {'dulwich'}
|
try:
|
||||||
installed_pkgs = {pkg.key for pkg in pkg_resources.working_set}
|
from dulwich import porcelain
|
||||||
missing_pkgs = required_pkgs - installed_pkgs
|
except ModuleNotFoundError:
|
||||||
|
|
||||||
if missing_pkgs:
|
|
||||||
env.Execute('"$PYTHONEXE" -m pip install dulwich')
|
env.Execute('"$PYTHONEXE" -m pip install dulwich')
|
||||||
|
from dulwich import porcelain
|
||||||
|
|
||||||
from dulwich import porcelain
|
from dulwich import porcelain
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue