From 88642248ca7258c2e66b8a62505abdf064c1e262 Mon Sep 17 00:00:00 2001 From: tibersam <35471713+tibersam@users.noreply.github.com> Date: Wed, 24 May 2023 16:28:06 +0200 Subject: [PATCH] Find correct package for pyyaml and simular packages In the debian sources, some packages, which are prepended with py e.g.: pyyaml have the py stripped (pyyaml -> python3-yaml) --- src/wheel2deb/depends.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wheel2deb/depends.py b/src/wheel2deb/depends.py index 7c4c029..9617620 100644 --- a/src/wheel2deb/depends.py +++ b/src/wheel2deb/depends.py @@ -70,6 +70,8 @@ def suggest_name(ctx, wheel_name): def suggest_names(ctx, wheel_names): for wheel_name in wheel_names: yield suggest_name(ctx, wheel_name) + if wheel_name[:2] == "py": + yield suggest_name(ctx, wheel_name[2:]) def search_python_deps(ctx, wheel, extras=None):