Last change
on this file since 4726 was
4715,
checked in by toby, 3 years ago
|
install: add postinstall for g2full & cleanup
|
File size:
1005 bytes
|
Line | |
---|
1 | echo "Finish up GSAS-II installation" |
---|
2 | set "python=%PREFIX%\python.exe" |
---|
3 | set "updatescript=%PREFIX%\GSASII\bootstrap.py" |
---|
4 | REM create bootstrap batch file |
---|
5 | echo REM Commands to run GSAS-II load/update process > "%PREFIX%\start_G2_bootstrap.bat" |
---|
6 | echo call %PREFIX%\Scripts\activate >> "%PREFIX%\start_G2_bootstrap.bat" |
---|
7 | echo python %PREFIX%\GSASII\bootstrap.py >> "%PREFIX%\start_G2_bootstrap.bat" |
---|
8 | REM "install" the GSAS-II package (create shortcuts, byte-compile...) |
---|
9 | REM call "%PREFIX%\Scripts\Activate" |
---|
10 | REM "%python%" "%updatescript%" --nonet > "%PREFIX%\GSASII\InstallLog.txt" |
---|
11 | REM Now try to update to latest GSAS-II version (will fail if no network) |
---|
12 | REM "%python%" "%updatescript%" --noinstall > "%PREFIX%\GSASII\UpdateLog.txt" |
---|
13 | REM# create start GSAS-II batch file |
---|
14 | echo REM Commands to run GSAS-II load/update process > "%PREFIX%\start_GSASII.bat" |
---|
15 | echo call %PREFIX%\Scripts\activate >> "%PREFIX%\start_GSASII.bat" |
---|
16 | echo python %PREFIX%\GSASII\GSASII.py >> "%PREFIX%\start_GSASII.bat" |
---|
17 | set errorlevel=0 |
---|
18 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.