]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rgwfile: fixes hardcode way to find include dir
authorHaomai Wang <haomai@xsky.com>
Mon, 7 Nov 2016 16:00:57 +0000 (00:00 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 7 Nov 2016 16:00:57 +0000 (00:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/pybind/rgw/setup.py

index c0c2bb8eaa048f8324133a914db084213de14f74..fa61461e85509327b397aa7f81772b7457e03ba2 100755 (executable)
@@ -91,6 +91,7 @@ def check_sanity():
         # The setup.py has been invoked by a top-level Ceph make.
         # Set the appropriate CFLAGS and LDFLAGS
 
+        compiler.set_include_dirs([os.path.join(CEPH_SRC_DIR, 'include')])
         compiler.set_library_dirs([os.environ.get('CEPH_LIBDIR')])
 
     try:
@@ -99,7 +100,6 @@ def check_sanity():
         link_objects = compiler.compile(
             sources=[tmp_file],
             output_dir=tmp_dir,
-            extra_preargs=['-iquote{path}'.format(path=os.path.join(CEPH_SRC_DIR, 'include'))]
         )
 
         compiler.link_executable(