]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common, spec.in: Add missing pyyaml dependency 36363/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 30 Jul 2020 07:55:08 +0000 (09:55 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 30 Jul 2020 07:55:08 +0000 (09:55 +0200)
Fixes: cd6a488ab2ca036dd4fb36751b938f605e97e1c8
Fixes: https://tracker.ceph.com/issues/46759
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
ceph.spec.in
src/python-common/setup.py

index 4b20dc2fa194e9fdf95d240aae9ac54b8c959912..498116212ec7320f95b1b4981ed225f3d37f9ff7 100644 (file)
@@ -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
index 369c928f928b85b8a458df74257744b99b8b832a..43a46eb10190c850ed7ee11382e7c9b872caeb8a 100644 (file)
@@ -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',