]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: use specified python3 version if any
authorKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 03:37:00 +0000 (11:37 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 05:30:48 +0000 (13:30 +0800)
commitd8c13e86048b7aac458f3eda101f9778e3d45dcf
tree0f01a8e43431eb7b6c3038335fe05b89c1e80a18
parent73e0f9e72b351f7dd4e36fee5af92c27f82b9fe4
cmake: use specified python3 version if any

use might have multiple python3 installed, some of them has/have all
dependencies installed and is good enough for building Ceph. we should
not always use the latest python installed in the system and complain that
there is missing dependencies, even if user has installed all the
python3 dependencies for the older python3.

put in other words, if user only installs cython module for python3.4, but
she has both python3.6 and python3.4 in her system. we should not force
her to uninstall python3.6 for installing Ceph.

this change also aligns with MGR_PYTHON_VERSION. i am not applying the
same change to WITH_PYTHON2, because python2 is already stablized. and distros
are not likely to release new python2 releases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt