Skip to content

Commit

Permalink
Add Anaconda3-5.0.1-0
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Dec 5, 2017
1 parent c61efe7 commit dfa6538
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Anaconda3-5.0.1-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#! /bin/bash

PKG=Anaconda3
VERSION=5.0.1
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD
#PREFIX=/scratch/local2/$PKG-$VERSION-$BUILD

set -xe
umask 022

BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile

export MAKEFLAGS="-j $(nproc)"

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

test -e Anaconda3-$VERSION-Linux-x86_64.sh || wget https://repo.continuum.io/archive/Anaconda3-$VERSION-Linux-x86_64.sh
chmod +x Anaconda3-$VERSION-Linux-x86_64.sh
./Anaconda3-$VERSION-Linux-x86_64.sh -b -f -p $PREFIX

exit

0 comments on commit dfa6538

Please sign in to comment.