]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: drop WITH_PYTHON2 option
authorKefu Chai <kchai@redhat.com>
Wed, 18 Dec 2019 09:08:21 +0000 (17:08 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Dec 2019 02:58:58 +0000 (10:58 +0800)
commit5fc657b40dc7d27e84d4b62b5f37d9c771d74fcd
treec5032c47424813c91b1114259b45fec1cc0b750f
parent47d0e1e16d4cd7a4cc3211a5b39a125b602c299b
cmake: drop WITH_PYTHON2 option

* drop WITH_PYTHON2 option
* print warning message if WITH_PYTHON3 is disabled
* drop MGR_PYTHON_VERSION option, as we don't support use different
  python version for python binding and ceph-mgr embedded python
  interpreter anymore. as before switching to python3-only build,
  we can build python3 and python2 python bindings, and ceph-mgr
  can use either of them. but after switching to python3-only
  build, ceph-mgr has to use whatever python version used to
  build python binding.
* move WITH_PYTHON3 option to $top_srcdir/CMakeLists.txt, as ceph-mgr
  and python binding will share this option.
* hardware ${PYTHON_VERSION} to 3
* hardware ${Python${PYTHON_VERSION}_VERSION_MAJOR} to 3
* only build boost library with python3
* s/Python_EXECUTABLE/Python3_EXECUTABLE/
* update the build scripts and packagings accordingly
* rename all cython${PYTHON_VERSION}_* targets to cython_*
* update distutils_install_module() so it does not take python_version
  parameter anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
23 files changed:
CMakeLists.txt
ceph.spec.in
cmake/modules/AddCephTest.cmake
cmake/modules/BuildBoost.cmake
cmake/modules/Distutils.cmake
cmake/modules/FindCython.cmake
debian/rules
do_cmake.sh
run-make-check.sh
src/CMakeLists.txt
src/ceph-crash.in
src/ceph-volume/CMakeLists.txt
src/ceph-volume/plugin/zfs/CMakeLists.txt
src/ceph.in
src/mgr/CMakeLists.txt
src/pybind/CMakeLists.txt
src/pybind/cephfs/CMakeLists.txt
src/pybind/mgr/dashboard/HACKING.rst
src/pybind/rados/CMakeLists.txt
src/pybind/rbd/CMakeLists.txt
src/python-common/CMakeLists.txt
src/test/CMakeLists.txt
src/tools/cephfs/CMakeLists.txt