From 0ada965fafb36094194347deebd4778f47bbe407 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 30 Jul 2020 09:55:08 +0200 Subject: [PATCH] python-common, spec.in: Add missing pyyaml dependency Fixes: cd6a488ab2ca036dd4fb36751b938f605e97e1c8 Fixes: https://tracker.ceph.com/issues/46759 Signed-off-by: Sebastian Wagner --- ceph.spec.in | 6 ++++++ src/python-common/setup.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 4b20dc2fa19..498116212ec 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -934,6 +934,12 @@ descriptions, and submitting the command to the appropriate daemon. %package -n python%{python3_pkgversion}-ceph-common Summary: Python 3 utility libraries for Ceph +%if 0%{?fedora} || 0%{?rhel} >= 8 +Requires: python%{python3_pkgversion}-pyyaml +%endif +%if 0%{?suse_version} +Requires: python%{python3_pkgversion}-PyYAML +%endif %if 0%{?suse_version} Group: Development/Libraries/Python %endif diff --git a/src/python-common/setup.py b/src/python-common/setup.py index 369c928f928..43a46eb1019 100644 --- a/src/python-common/setup.py +++ b/src/python-common/setup.py @@ -17,6 +17,9 @@ setup( keywords='ceph', url="https://github.com/ceph/ceph", zip_safe = False, + install_requires=( + 'pyyaml', + ), classifiers = [ 'Intended Audience :: Developer', 'Operating System :: POSIX :: Linux', -- 2.39.5