]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: pass python interpreter's path to embedded python
authorKefu Chai <kchai@redhat.com>
Wed, 26 Apr 2017 08:00:11 +0000 (16:00 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 26 Apr 2017 10:08:07 +0000 (18:08 +0800)
commit67072d2261a6da142e0bd3d67058f399c5c480b3
tree2cf9b891e0fb79f0967e7d4f01670c85452b3c75
parent6c2a5a27715fdf53629f8059ab2d7c171e14541b
mgr: pass python interpreter's path to embedded python

* also do prevent python from registering its own signal handler, it does
  not make sense in our embedded use case.
* pass python interpreter's path to embedded python before initializing
  it. python uses this path to look up the "site" modules, etc.

so it can use other interpreter if it is not intalled into $PATH,
otherwise the "python" in $PATH will always be used even the
PYTHON_EXECUTABLE in CMake's cache is pointing to another python
interpreter.

if one want to debug ceph-mgr with a customize build python, this would
be helpful.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/config-h.in.cmake
src/mgr/PyModules.cc