]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: install cython modules 9385/head
authorKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 05:38:05 +0000 (13:38 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 15:50:05 +0000 (23:50 +0800)
commitbbf51e15621ab1261f22e5ec8e53df10a0018566
tree4c2a1e4e6126a32b75af1d20f265c08de044969f
parentdfea8e41bd4d0f4f9bb1421c7e2458dc1de82d7e
cmake: install cython modules

* fix CYTHON_ADD_MODULE() macro. because python_add_module() offered by
  FindPythonLibs.cmake creates a target with name of ${name}, which conflicts
  with existing targets like "rbd" or "rados". so we can not reuse the
  name in ${name}.pyx. and instead, we should specify the target name
  explicitly.
* add distutils_install_cython_module() function to build and install
  cython modules.
* we can split build and install of cython module, but the install phase
  always tries to build the module. so keep it this way. will look at it
  later on.
* move the variables initializations into the Distutils.cmake module.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Distutils.cmake
cmake/modules/FindCython.cmake
src/CMakeLists.txt
src/pybind/CMakeLists.txt
src/pybind/cephfs/CMakeLists.txt
src/pybind/rados/CMakeLists.txt
src/pybind/rbd/CMakeLists.txt