Changeset 4715


Ignore:
Timestamp:
Jan 5, 2021 6:20:34 AM (11 months ago)
Author:
toby
Message:

install: add postinstall for g2full & cleanup

Location:
install
Files:
2 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • install/g2complete/post-link.sh

    r4704 r4715  
    22echo "Complete installation GSAS-II and update from APS subversion server, if on network" > $PREFIX/GSASII/conda_inst.log
    33# create bootstrap script
    4 echo "# Commands to run GSAS-II load/update process" > $CONDA_ROOT/start_G2_bootstrap.sh
    5 echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_G2_bootstrap.sh
    6 echo "$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py" >> $CONDA_ROOT/start_G2_bootstrap.sh
     4#echo "# Commands to run GSAS-II load/update process" > $CONDA_ROOT/start_G2_bootstrap.sh
     5#echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_G2_bootstrap.sh
     6#echo "$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py" >> $CONDA_ROOT/start_G2_bootstrap.sh
    77#
    88# "install" the GSAS-II package (create shortcuts, byte-compile...)
     
    1212$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall > /tmp/bootstrap2.log 2>> $PREFIX/GSASII/conda_inst.log 2>&1
    1313# create start script
    14 echo "# Commands to start GSAS-II" > $CONDA_ROOT/start_GSASII.sh
    15 echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_GSASII.sh
    16 if [ -e $PREFIX/bin/pythonw ]
    17 then
    18    echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
    19 else
    20    echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
    21 fi
    22 cp $PREFIX/GSASII/conda_inst.log $PREFIX/.messages.txt
     14#echo "# Commands to start GSAS-II" > $CONDA_ROOT/start_GSASII.sh
     15#echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_GSASII.sh
     16#if [ -e $PREFIX/bin/pythonw ]
     17#then
     18#   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
     19#else
     20#   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
     21#fi
     22#cp $PREFIX/GSASII/conda_inst.log $PREFIX/.messages.txt
     23echo "GSAS-II bootstrap completed" > $PREFIX/.messages.txt
  • install/g2full/construct.yaml.template

    r4710 r4715  
    3333#  - sip                              [not osx]
    3434
     35post_install: g2postinstall.sh           [unix]
     36post_install: g2postinstall.bat           [win]
     37
    3538license_file: EULA.txt
    3639
Note: See TracChangeset for help on using the changeset viewer.