]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind: refactor monkey_with_compiler()
authorKefu Chai <kchai@redhat.com>
Tue, 4 Feb 2020 12:14:10 +0000 (20:14 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 6 Feb 2020 01:59:35 +0000 (09:59 +0800)
commit8cd234b08cc2a168dca88d89e3fdfdcd225a2e1a
treedcbfc4342d2b0d3789b0bcc1b421a80f305aa0b8
parent5948bd5545f112158a9b21b1224227cb3f489cfb
pybind: refactor monkey_with_compiler()

* remove `clang` global variable
* do not assume that `clang` is assigned before
  `filter_unsupported_flags()` is called.
* use a decorator-style function to do the monkey patch

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py