Don't use TMPDIR when building Python.
Test: TMPDIR=foo ./checkbuild.py --module host-tools
Bug: None
Change-Id: I309685bddf7c9dbc28bf9fec75efb9d863787484
diff --git a/build-python.sh b/build-python.sh
index d8e1dec..a68253f 100755
--- a/build-python.sh
+++ b/build-python.sh
@@ -178,7 +178,7 @@
}
if [ -z "$BUILD_DIR" ] ; then
- BUILD_DIR=$TMPDIR/buildhost
+ panic "--build-out is required"
fi
bh_setup_build_dir $BUILD_DIR
diff --git a/build.py b/build.py
index e3314d8..d3e00f9 100755
--- a/build.py
+++ b/build.py
@@ -39,6 +39,8 @@
if args.host != 'windows':
build_cmd.append('--try-64')
+ build_cmd.append('--build-dir=' + os.path.join(args.out_dir, 'python'))
+
build_support.build(build_cmd, args, intermediate_package=True)
if __name__ == '__main__':