]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Install python2-Cython in python2 environment
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 4 Mar 2019 02:38:25 +0000 (12:38 +1000)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 09:59:09 +0000 (11:59 +0200)
do_cmake.sh tests for Cython module version in python2

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 6de7111e735683f2c73d4c013d9611fc02b68985)

Conflicts:
ceph.spec.in

ceph.spec.in

index 728af323d5e2193e5c137bceb1dfa13870850b33..58d3fbe77316ed8e1fe4e02eabfe11f8d102f742 100644 (file)
@@ -222,7 +222,9 @@ BuildRequires:  openldap-devel
 BuildRequires:  openssl-devel
 BuildRequires:  CUnit-devel
 BuildRequires:  redhat-lsb-core
-BuildRequires: Cython%{_python_buildid}
+%if 0%{with python2}
+BuildRequires: python2-Cython
+%endif
 BuildRequires: python%{_python_buildid}-prettytable
 BuildRequires: python%{_python_buildid}-sphinx
 BuildRequires: lz4-devel >= 1.7