]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: put temp .o files in $TMPDIR 10204/head
authorKefu Chai <kchai@redhat.com>
Fri, 8 Jul 2016 06:59:21 +0000 (14:59 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 8 Jul 2016 07:03:45 +0000 (15:03 +0800)
otherwise they will go to $PWD/$TMPDIR instead.

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

index 802d175a1c7e0f43aa445f4d0a26ec714db851b5..9e152bd081f70400443efa700ec6d2e0a62c0716 100755 (executable)
@@ -109,7 +109,7 @@ def check_sanity():
 
     try:
         compiler.link_executable(
-            compiler.compile([tmp_file]),
+            compiler.compile([tmp_file], tmp_dir),
             os.path.join(tmp_dir, 'rados_dummy'),
             libraries=['rados'],
             output_dir=tmp_dir,