Skip to content

Commit

Permalink
force installation of scons and running of the scons installed by CCP
Browse files Browse the repository at this point in the history
  • Loading branch information
egaffo committed Jun 16, 2020
1 parent 38bdaa1 commit bcc37c4
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions install_circompara
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@
export CIRCOMPARA_HOME=$(dirname $(readlink -f $0))

mkdir $CIRCOMPARA_HOME/tools
## check whether Scons is installed and install it if not
mkdir -p $CIRCOMPARA_HOME/bin

export PATH=$CIRCOMPARA_HOME/bin/:$PATH
## export environment variable for local R repository
export R_LIBS=$CIRCOMPARA_HOME/tools/R_libs

## install Scons
command -v scons >/dev/null 2>&1 ||\
{ echo >&2 "I require Scons but it's not installed. Installing Scons...";
cd $CIRCOMPARA_HOME/tools;
wget -N -c http://prdownloads.sourceforge.net/scons/scons-local-2.5.1.tar.gz;
wget -N -c http://prdownloads.sourceforge.net/scons/scons-local-3.1.2.tar.gz;
mkdir -p scons
tar -xf scons-local-2.5.1.tar.gz -C scons ;
tar -xf scons-local-3.1.2.tar.gz -C scons ;
ln -s $CIRCOMPARA_HOME/tools/scons/scons.py $CIRCOMPARA_HOME/bin/scons;
cd - ;}
cd -

cd $CIRCOMPARA_HOME/bin
ln -s ../src/*.py .
ln -s ../src/*.R .
cd -

export PATH=$CIRCOMPARA_HOME/bin/:$PATH

## export environment variable for local R repository
export R_LIBS="$CIRCOMPARA_HOME/tools/R_libs"

## install other tools
scons -i -f $CIRCOMPARA_HOME/src/ccp_install_tools.scons $1
$CIRCOMPARA_HOME/bin/scons -i -f $CIRCOMPARA_HOME/src/ccp_install_tools.scons $1

0 comments on commit bcc37c4

Please sign in to comment.