Skip to content

Commit

Permalink
python-3.7.6: Change tmpdir
Browse files Browse the repository at this point in the history
We are going to install Tensorflow into this package. The compilation of
Tendowflow produces huge amounts of data (335612 files, 35 GB) in
~/.cache/bazel.

Change BUILD_TMPDIR (which implies $HOME during the build) away from
/dev/shm to avoid running out of memory.
  • Loading branch information
david authored and donald committed Mar 29, 2020
1 parent 366b331 commit 3c5eade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-3.7.6-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin
set -xe
umask 022

BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp
BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR )
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
Expand Down

0 comments on commit 3c5eade

Please sign in to comment.