source: install/g2pkg/post-link.sh

Last change on this file was 5440, checked in by toby, 7 weeks ago

unsuccessful attempt to rebuild gsas2pkg for use with conda-forge

File size: 1.1 KB
Line 
1#!/bin/bash
2mkdir -p $PREFIX/GSASII
3echo "Preparing to install GSAS-II from APS subversion server"
4echo "Preparing to install GSAS-II from APS subversion server" > $PREFIX/GSASII/conda_inst.log
5# create bootstrap script
6echo "# Commands to run GSAS-II load/update process" > $CONDA_ROOT/start_G2_bootstrap.sh
7echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_G2_bootstrap.sh
8echo "$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py" >> $CONDA_ROOT/start_G2_bootstrap.sh
9# install and run the bootstrap
10cp $PREFIX/bin/gsas2-install.py $PREFIX/GSASII/bootstrap.py > $PREFIX/GSASII/conda_inst.log 2>&1
11echo $PREFIX/bin/python  >> $PREFIX/GSASII/conda_inst.log 2>&1
12$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py >> $PREFIX/GSASII/conda_inst.log 2>&1
13# create start script
14echo "# Commands to start GSAS-II" > $CONDA_ROOT/start_GSASII.sh
15echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_GSASII.sh
16if [ -e $PREFIX/bin/pythonw ]
17then
18   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
19else
20   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
21fi
Note: See TracBrowser for help on using the repository browser.